How to drop all the events within a pre-configured percentage in Promtail

I know we can use count_over_time to filter the streams which logged at least “x” lines in the last minute. Can we achieve this at Promtail side?

Example: Can we drop around 40% of the events that have the field loglevel with value “debug” in Promtail before forwarding to Loki?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.