0

I have promtail installed as a daemonset. Almost all applications in the cluster log traditional messages, except one that is logging JSON. However, when i query the data, i get lines like this:

2022-06-26T06:27:33.495400742Z stdout F {"json":"data here"}

(Looking at the raw log of the containers only {"json":"data here)"} can be seen.)

Are there some labels one can add to such pods that instructs promtail to process data as JSON? I found a bunch of documentation on querying, but nothing on how to set this up on the pod level; and the json

GergelyPolonkai
  • 359
  • 1
  • 5
  • 12

0 Answers0