I run the stack EFK through docker-compose, the stack starts, kibana and elasticsearch go through the initial setup. fluentd throws the following error at startup:
"The client is unable to verify that the server is Elasticsearch. Some functionality may not be compatible if the server is running an unsupported product."
kibana 8.2.0 elasticsearch 8.2.0
Maybe fluent can't log in over https, where to look for the problem?
Dockerfile fluentd:
FROM fluentd:latest
# Use root account to use apk
USER root
# below RUN includes plugin as examples elasticsearch is not required
# you may customize including plugins as you wish
RUN apk add --no-cache --update --virtual .build-deps \
sudo build-base ruby-dev \
&& sudo gem install fluent-plugin-elasticsearch \
&& sudo gem sources --clear-all \
&& apk del .build-deps \
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem
COPY conf/fluent.conf /fluentd/etc/
COPY entrypoint.sh /bin/
USER fluent
fluentd.conf
<source>
@type forward
port 24224
bind 0.0.0.0
</source>
<match *.**>
@type elasticsearch
host elasticsearch
port 9200
user fluent
password 6M9eXThhypVjV8h
logstash_format true
logstash_prefix fluentd
logstash_dateformat %Y%m%d
</match>
the username and password for fluent are created in kibana