jeudi 30 juin 2022

Grafana Loki pattern syntax error: unexpected IDENTIFIER

try to parse with pattern using Grafana + Loki

i am using

{pod=~"backend-deployment-.*"} |~ pattern `<_> - - <_> "<method> <path> <_>" <status> <_> "<_>" "<_>" <_> <duration> [<service>] [<_>] <_> <_> <_> <_> <_>`  

to parse this log

10.110.1.132 - - [27/Aug/2021:02:37:06 +0000] "GET /main.d8e010115d6aba1bd049.js.map HTTP/2.0" 200 10842370 "https://gym.com/students/edit/173" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15" 34 20.031 [gymauto-gymauto-frontend-service-v1-8080] [] 10.110.5.217:8080 10842370 20.035 200 a7c4299aaa7ea674e91d13315

but there is error

parse error at line 1, col 35: syntax error: unexpected IDENTIFIER, expecting STRING

not like backtick , what is best solution i try " " also ' ' but same error. can not use pattern

Aucun commentaire:

Enregistrer un commentaire