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

Loki Grafana: How to add Detected Fields into Log Labels? #4355

Closed
sunnyrockstar98 opened this issue Sep 20, 2021 · 1 comment
Closed

Loki Grafana: How to add Detected Fields into Log Labels? #4355

sunnyrockstar98 opened this issue Sep 20, 2021 · 1 comment

Comments

@sunnyrockstar98
Copy link

I don't want to write regex for my log lines during my promtail setup as I have Loglines generated from multiple kind of apps which follow a very different format not like logfmt/json/etc.

I have 2 fields traceID and spanID in all my log lines which I want extracted in "Log_Labels" part in Grafana. My final aim is to build custom dashboards on top of that.

I have tried using the Derived Fields feature in Grafana - That works but labels show in Detected Fields - not in Log labels.

What kind of Promtail Setup I can do do using Pipelines so that I can extract 2 small key-value pairs in "LOG-LABELS" in Grafana which can help me group them and create dashboards?

@dannykopping
Copy link
Contributor

Thank you for your question / support request.
We try to keep GitHub issues strictly for bug reports and feature requests.

You may submit questions and support requests in any of the following ways:

I'm closing this issue, but please feel free to reach out in any of the channels listed above.

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

No branches or pull requests

2 participants