CI/CD job log timestamps

Tier: Free, Premium, Ultimate Offering: GitLab.com, Self-managed, GitLab Dedicated
History
  • Introduced in GitLab 17.1 with a flag named parse_ci_job_timestamps. Disabled by default.
  • Feature flag parse_ci_job_timestamps removed in GitLab 17.2.

You can generate a timestamp in the ISO 8601 format for each line in a CI/CD job log. With job log timestamps, you can identify the duration of a specific section in the job. By default, job logs do not include a timestamp for each log line.

When timestamps are enabled, the job log uses approximately 10% more storage space.

Prerequisites:

  • You must be on GitLab Runner 17.0 or later.

To enable timestamps in job logs, add a FF_TIMESTAMPS CI/CD variable to your pipeline and set it to true.

For example, add the variable to your .gitlab-ci.yml file:

variables:
  FF_TIMESTAMPS: true

job:
  script:
    - echo "This job's log has ISO 8601 timestamps!"

Here’s an example log output with FF_TIMESTAMPS enabled:

Timestamps for each log line

To provide feedback on this feature, leave a comment on issue 463391.