-
Notifications
You must be signed in to change notification settings - Fork 310
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
Template installation should waiting or reconnecting ES clusters when failing #198
Comments
@pitr @omallo I am encountering similar case and wondering what is the problem. Isn't it about the fact that when you start containers (probably with Docker Compose) the elasticsearch cluster is not available yet as it takes some time (sometimes even 90-120 seconds) for Elasticsearch to fully get up and running? Fluentd is up much faster, after few seconds or less, and then it instantly crashes as Elasticsearch is not responding when Fluentd tries to create index template. (1) Is it possible the above is the case? (2) If yes, does anybody know any solution to workaround it so that Fluentd will gracefully wait till Elasticsearch cluster is ready and will create template and index all logs afterwards? (3) If yes, can we expect such feature of waiting for the cluster to be implemented in the plugin? 🌞 TIA! |
Hi, thanks for drilled down into root cause of this issue.
Possible. Because ES plugin gives up to connect and install Elasticsearch templates when connecting failure.
No. There is no solution on ES plugin side.
Ideally, ES plugin should wait ES cluster booting. But it is not implemented yet. |
@cosmo0920 Thanks for a super fast response! Is there sth that you could suggest me to do with this? Is there some trick to be used with other plugin or whatever, buffer so that Fluentd will wait for Elasticsearch in this case? |
We are not familiar with docker's DHCP mechanism. We can only handle this issue with provisional avoidance in operation....
|
Problem
I would like to use the new index template feature introduced in #194 but once I configure it, my
fluentd
setup stops working.Steps to replicate
Here is the configuration that I'm using:
The error I'm getting is the following:
The problem seems to be that I'm using a "special" hostname
elasticsearch
which is actually the name of my Docker service for which Docker defines this hostname. After a first analysis, I can say the following:template_name
andtemplate_file
settings, everything works fine, i.e. the plugin is able to connect to ElasticSearch without problems so the hostname resolution seems to be OK in general.The text was updated successfully, but these errors were encountered: