Hello, how can logstash-input-elasticsearch support the ignore_unavailable function of elasticsearch?
Opened this issue · 1 comments
zhijieliu666 commented
Hello, how can logstash-input-elasticsearch support the ignore_unavailable function of elasticsearch?
My input obtains data from elasticsearch every minute. The index contains the indexes of today and yesterday. Sometimes, the indexes of today do not exist. Therefore, I need the ignore_unavailable method provided by the elasticsearch API. Thank you. How can logstash-input-elasticsearch support this?
consulthys commented
A workaround can be found here:
https://stackoverflow.com/a/77352046/4604579
Just add a wildcard at the end of your index name, thanks to allow_no_indices
which defaults to true.