Skip to content

Add Configurable Log Output Formatting Including Timestamps #1204

@0x49b

Description

@0x49b

Feature request

We would like the ability to configure the line_format of the query that returns log results. Currently, the result string includes only the message, or when configured the container key (LOGGING_PLUGIN_CONTAINER_KEY). We also need the timestamp to be included, which is available in the raw log under timestamp.

This could be implemented more broadly so that, in addition to the timestamp, other labels could also be used in the formatted output for additional use cases.

If the configuration Option is not set, the current default is used.

Use case

We provide a custom application for builds using Tekton. We are currently implementing the Loki stack to store results in Loki instead of Postgres. However, when retrieving results from Loki, the timestamp is missing, which prevents us from ordering the results correctly for display to users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions