Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello, how can logstash-input-elasticsearch support the ignore_unavailable function of elasticsearch? #187

Open
zhijieliu666 opened this issue Mar 17, 2023 · 1 comment

Comments

@zhijieliu666
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants