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

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

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

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

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.

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