- using loki for minecraft server logs
- got alert that sends notice when a player joins
- everything works nicely, but I want the name of that player
- digging around I see this help about using regex named capture groups
- I created a query with regex capture group named player, that I tested against the logs
Is there a way to use that named group in alert summary, description?
The way we can use values in other expressions of the alert expression, like {{ $values.B }}
in my case gives me number of counted “player joined” occurrences.
here is my full query
count_over_time({compose_service="minecraft"} |= `joined the game` | regexp `.*:\s(?P<player>.*)\sjoined the game$` [5m])