Reputation: 11
I am building elasticsearch and kibana inside docker, I have them up but when a compose logs for elasticsearch I got this warning:
"WARN", "message":"received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.29.0.2:9200, remoteAddress=/172.29.0.4:54642}"`
And then the logs are not connected and displayed inside elasticsearch website, noting that the same repo is running on another server and it works correctly. I will attach the files setup if someone can help or at least try them on his side. Thanks a lot.`
You can find my code in the following repo
And also i have the same error, and then i tried to substitute all hhtp by https and also the same thing: Elasticsearch | {"@timestamp":"2023-01-04T14:04:50.865Z", "log.level": "WARN", "message":"received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.29.0.2:9200, remoteAddress=/172.29.0.6:55870}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[ad8fe576ac58][transport_worker][T#2]","log.logger":"org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransport","elasticsearch.cluster.uuid":"QDf3uC44Trqpc3FHqBuXtA","elasticsearch.node.id":"3NryPkn_R1q0n9vi7WozQw","elasticsearch.node.name":"ad8fe576ac58","elasticsearch.cluster.name":"docker-cluster"}
Upvotes: 1
Views: 3171
Reputation: 9
in elasticsearch/config/elasticsearch.yaml
xpack.security.enabled: false
Or keep it enabled and in the kibana.yml ( If the xpack /ssl is enabled ) change http to https on Elasticsearch.hosts line from:
`elasticsearch.hosts: ["http://localhost:9200"]`
with :
`elasticsearch.hosts: ["https://localhost:9200"]`
also add :
elasticsearch.username: "kibana_system"
elasticsearch.password: "pass"
Upvotes: 0
Reputation: 336
@IDev have you visited the link which is present in your elastiscearch.yml file for XPack security settings? There are some properties which are disabled by default but are important in order to establish connection with Elasticsearch.
Upvotes: 0