Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promtail: add support for passing through journal entries as JSON #1436

Merged

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Dec 17, 2019

This commit adds an extra configuration field (json) to the journal target configuration schema. When set to true, messages from the journal target will be passed through as JSON, containing all of the fields from the entry as keys and their values as the value.

For backwards compatibility, the value for json defaults to false.

Closes #1288.

/cc @roidelapluie

This commit adds an extra configuration field (`json`) to the journal
target configuration schema. When set to true, messages from the journal
target will be passed through as JSON, containing all of the fields from
the entry as keys and their values as the value.

For backwards compatibility, the value for `json` defaults to false.

Closes grafana#1288.
@rfratto rfratto force-pushed the support-json-from-journal-target branch from cd98eee to 0c16a9b Compare December 17, 2019 16:25
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyriltovena cyriltovena merged commit 874d016 into grafana:master Dec 19, 2019
@rfratto rfratto deleted the support-json-from-journal-target branch September 18, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support JSON for systemd output fields
2 participants