Hi there, i am starting to understand how to display data in grafana. i have a log comming in from loki where i need to extract a string from a json value.
for now i got this far:
{container_name=~".*selfs.*"} |= has completed in | json | line_format "{{.msg}}"
this gives me a log line like this for example:
Job Nr: 6, ID: 4t9UV3ngr5_0mu4toV8UB has completed in 46.05699282288551 seconds!
what do i need to do t just get the seconds out of this? i played around with pattern and regex, but nothing seems to work.
Hi, thank you so much for your reply. I just cannot get my head around why this is working.
why is \d\ not the literal caracter ādā ? like here: regex101: build, test, and debug regex