Skip to content

Add timestamps to pod logs

Adrien Kohlbecker requested to merge ak/logs-timestamp into master

What does this MR do?

As part of #37276 (closed) we want to add a time picker to the logs. Related to that is being able to see the times of the logs you're looking at.

This MR prepends timestamps to the log lines, with both kubernetes-api and elasticsearch backends. The timestamp is returned in standard ISO8601 format by the backend, then presented in a shortened manner by the frontend. Short form is mirrored from other log products.

Screenshots

Screenshot_2019-12-12_at_17.07.48

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports