How to send the .message field to Loki in json form && How use the rest of the field as a loki label #23604
Unanswered
devops-taehoon-kim
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi.
I want to use kubernetes pod labels and pod name, namespace to loki label.
But i have one problem.
I want to send our logs to loki with 'json format'
our log format is mostly json format.
But When i use " . = parse_json!(.message) " , fields using kubernetes_logs is gone..
so i tried this, too
..
.message = parse_json!(.message)
..
and then, loki sinks, encoding.coded: raw_message
but this not shows like json at grafana.
Any advice to me ?
Thanks
What i want to
Vector Config
Tested
sources:
kubernetes_logs:
type: kubernetes_logs
include_paths_glob_patterns:
- "/istio-proxy/"
Vector Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions