-
Notifications
You must be signed in to change notification settings - Fork 130
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
Docker compose example from official docs broken? #391
Comments
Can confirm as I'm having the exact same issue. Been having a bunch of trouble trying to get the EFK stack working. Seems like a lot of articles and tutorials out there are out of date. A real shame that even the official documentation doesn't work. |
Hi! I came across the same Problem and I got it to work. Not sure if this solution fits for your situation. While following the official docs ( https://docs.fluentd.org/container-deployment/docker-compose ) I changed the config to use the newest versions up to date.
This works for me. Of course, disabling security (xpack.security.enabled=false) is just for proof of concept. Otherwise elastic will complain about the http connections where it expects https. Right now I am not aware how to configure fluentd to do this. Hope this helps! |
Thank you @Xernosch |
If you don't use ES8 for any reasons install elasticsearch gem version < 8 just before fluent-plugin-elasticsearch:
and don't switch to ES8 in docker-compose.yml |
Hi, I tried to apply the suggested approach. Now I receive a new error:
elasticsearch/kibana version: 7.10.2 Any suggestion on why having this error and a possible solution? Thank you in advance! |
For those having problems, it all seems to come down to version incompatibility. This worked for me:
With the Dockerfile being
You might need to restart the fluentd pod if it fails before the elasticsearch pod has finished initialising |
mark |
elasticsearch 8.x dockerfile
docker-compose.yaml
|
@paulsjohnson91 Thanks for your notes! It works! ❤️ ❤️ ❤️ |
Describe the bug
I am (to the best of my knowledge) strictly following the official docker-compose example (https://docs.fluentd.org/container-deployment/docker-compose) but the Fluentd image runs into an error installing
fluent-plugin-elasticsearch
:fluentd_1 | 2022-02-21 08:44:31 +0000 [info]: gem 'fluentd' version '1.12.0'
fluentd_1 | /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file -- elasticsearch/transport/transport/connections/selector (LoadError)
Is also experienced by others (@https://stackoverflow.com/users/18044852/henry-kao):
https://stackoverflow.com/questions/71120621/efk-system-is-build-on-docker-but-fluentd-cant-start-up/71126320
To Reproduce
follow https://docs.fluentd.org/container-deployment/docker-compose
Expected behavior
Fluentd container to start up with no errors...
Your Environment
Your Configuration
Your Error Log
/usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file -- elasticsearch/transport/transport/connections/selector (LoadError)
Additional context
I would assume this is me getting something wrong, but as others confirm this behavior it might actually be an issue...
The text was updated successfully, but these errors were encountered: