Logstash Elasticsearch Input Plugin for streaming data

陌路散爱 提交于 2019-12-25 07:59:56

问题


I would like to know if we can use logstash-input-elasticsearch plugin for streaming data , ex: if I have data available in my database and I run ElasticSearch input plugin , it will index the data into an output, but if after some time more data comes of ElasticSearch database , Is ElasticSearch input plugin is able to index that data without restarting the logstash ?

Thank you for your attention and your help.


回答1:


By default, the elasticsearch input will run a scroll query on your ES instance, pump the documents matching the query, stream them to your outputs and when done Logstash will shut down.

However, what you can do is set up a cron job that will start your Logstash pipeline at regular intervals and queries the new documents present in ES.



来源:https://stackoverflow.com/questions/39097846/logstash-elasticsearch-input-plugin-for-streaming-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!