Loki Log click the log screenshot attached here i have get logs with this query
{namespace="health-helper-stg"} |json | line_format "{{.log}}"
There are multiple logs with different msg types from multiple apps.
So i need to get count of each msg type and its count in the grafana table. Because msg type is dynamically changing hardcore is not possible. for example:
msg "request completed"
msg "ReceiveTokenService.getVoiceToken"
msg .............etc
So we want to get each msg types and count dynamically not always mention msg type in the query.
I'm using this query to get manually to build a table
sum by (app) (count_over_time({namespace="health-helper-stg"} |= "msg" |="ReceiveTokenService.getVoiceToken" [$__range]))
but need to get one by one for each msg type but it takes long time and values dynamically change when we update code.