How can i send all the events in one email using logstash


(Naga Kunchala) #1

how can i send all the events in one email using logstash


How to send multiple event logs in single email using logstash
(Andreas H) #2

Use the aggregate filter to combine multiple events together.
https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html


(Naga Kunchala) #3

Thanks for your valuable information. can you please send me one example using aggregate filter send mail at least 10 events at time


(Andreas H) #4

There are plenty of examples in the documentation and it would depend on what your configuration is.
Essentially you would have to figure out how you would measure the first 10 tasks.... maybe by mapping a counter using the aggregate filter and then increasing that counter for each log line and once it hits 10 then mark your task as the end and then run the output to mail.