I have a logging system where some events are repeated infinitely. for example:
12:03 – Restart attempted
12:03 – Restart failed
12:02 – Restart attempted
12:02 – Restart failed
12:01 – Restart attempted
12:01 – Restart failed
This might go on for days. I imagine there are standard ways that systems deal with spammy events like this.
What are the common ways logging systems deal with these kind of events without flooding the log system?
One approach would be to coalesce matching entries that repeat within some time delta of each other, something like