How to analyze loki storage space?

Viewed 758

Today the disk space used by Loki has filled up. Is there a dashboard or function in Loki to identify which PODSs generated the most logs?

Something besides loki-canary?

I have never used this tool and I don't know if it is right for me

1 Answers

You can analyse the logs generation with the following LogQL:

topk(10,count_over_time({filename=~".+"}[1h]))

Change the "{filename=~".+"}" stream selector and the "1h" log range as desired.

Related