Skip to content

Parse json into loki label #1691

Closed Answered by pepov
Dubouchj asked this question in Q&A
Dec 3, 2021 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

once data is parsed you should be able to access data (even nested) using the labels field in the loki output config:

spec:
  loki:
    url: http://loki:3100/
    labels:
      color: "$.color"

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tarokkk
Comment options

Answer selected by csatib02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #890 on March 12, 2024 10:59.