we had meet some linux filesystem error recently,a troublesome thing is that Linux will log a large number of the same logs at a certain point in time.like this:
we use filebeat and logstash to record this error and send email alert,but how can I merge these same log to single record? these repeated alert mail have filled our mailbox.
or can someone give improve suggestions? thanks for any replies.
Well If you use a Kibana alert and only set it to notify on status change you will only get one email until the condition clears then you'll get another email saying it's clear.
That is probably how I would approach the alerting side of it.
Kibana Alerting
You could probably use a log threshold alert
And notify only on status change
Only on status change: Actions are not repeated when an alert remains active across checks. Actions run only when the alert status changes.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.