1
votes

I'm sending GCP logs to loki and I would like to parse out the jsonPayload as labels. When I run a query, I know I can do query| json but is there a way to do this via the yaml config?

The jsonPayload can have different fields for different logs so I don't want to hardcode each field in the json pipeline stage