Currently we are trying to send data from kafka to elasticsearch and in between we used logstash filter elasticsearch plugin to query for previous documents timestamp and other fields, at that time open connections between logstash and elasticsearch are very high. Due to open connections some threads are waiting and then logstash was crashed.
Is there any way to reduce the open connections between logstash and elasticsearch in logstash filter elasticsearch plugin?
Configurations are default. We did POC on 2 core machine and the pipeline workers by default "2".
Problem:
Open connections between logstash and elasticsearch are high, while querying for previous documents fields by using logstash filter elasticsearch plugin in logstash. And also there are so many TIME_WAIT connections on logstash server.
Note:
No issue when we send events directly from kafka to elasticsearch by using logstash without elasticsearch filter plugin.
@warkolm there are no errors and warnings in logstash logs
[2017-09-19T02:59:55,993][INFO ][logstash.pipeline ] Pipeline main started
[2017-09-19T02:59:56,095][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
@warkolm Kafka consumer lag is increasing for that logstash consumer, and when I checked consumer threads by using below command it was not showing any consumer logstash threads and it's not consuming any events.
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.