After watching the Grafana Loki training, I tried to follow the instructions in the promtail pipeline training but my log differs from the one shown in the video. No “log:” property to search as shown in the video, my starts with “level”. secondly after I recreated the secret my logs stopped flowing, so maybe the promtail config or secret messed it up. Trying to figure out what broke. Has anyone else had similar experience? should I be using “level” instead of “log” property. What should my promtail.yaml look like if I should make a change. Thanks in advance.
promtail.yaml - below
- match:
selector: '{app="api"}'
stages:
- json:
expressions:
log:
- json:
source: log
expressions:
code: code
method: method
- labels:
code:
method: