Hi!
Can you tell me how to get the latest n logs or latest log for each label value using only one query?
Now I’m doing this by following a query and using a transformation.
{service_name=~“.+”}
“service_name” is label.
However, if one of the label values has the same number of logs as the line limit, the others will not be included in the query.
I have about 100 service_name label values. And I would not like to have a separate panel in dashboards for each value.
This is one log.