At the end of the story, I cannot get any messages, or errors when I am starting logstash. I think there is something wrong with "dash", can you guys please give me advise or way for success.
My expected output is;
"computer_tag":"something",
"host_count":"12",
"hostname":"comp-1.example.com",
"name_surname":"john-doe",
So you only send events to rabbitmq if they have a _timeouttag1tag, but since you are using push_previous_map_as_event only one event (the last one) will timeout.
With that configuration I would expect nothing to happen for the first 100 seconds, then a single event written to rabbitmq.
I understand that, but whats the correct way to count host-name and publish when timeout ?
I would like to count "host-names" and publish to rabbit after 100 seconds.
Well the event that goes to rabbitmq will not have computer_tag since that mutate is only applied to the events that are discarded, not the event created by aggregate. Move the mutate after the aggregate.
Generally your aggregate looks good. I would add event.cancel to the code option of the aggregate and change push_previous_map_as_event to push_map_as_event_on_timeout
Which logstash version. I wonder if you are hitting this issue.
java_execution became the default in 7.0. The bug with flushers was introduced in 7.7 or 7.8 (I think) and fixed in 7.9.1. What version are you running? If it is an affected version try disabling java_execution.
I know of no problems with hyphens in field names.
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.