I have spent several days trying to combine Metricbeat events into one with Logstash.
I understand it should be done with the aggregate filter of Logstash. Still, I haven't figured it out.
I use Logstash to process events from Metricbeat. Metricbeat receives original SNMP polling events from Prometheus (remote write)
For a given instance and interface at the same time my two events look like this:
Event 1
The first event does not have [prometheus][labels][ifName], so you cannot use that. Both events have [prometheus][labels][ifIndex] so you could try using that
It’s sad that the code you proposed didn’t work out
As I am using work around and having duplicates I am still thinking how I can push mapped event and use event.cancel in aggregate filter so I will not have any problems. Now when I use event.cancel I see nothing in my output (Elasticsearch)
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.