Errors/Problems with logstash in docker-compose

Hello,

I have problems to up my docker-compose enviroment with logstash

docker-compose.yml

# cat docker-compose.yml
version: '2'
services:
  logstash:
    image: docker.elastic.co/logstash/logstash:7.10.2
    container_name: logstash-bs4it
    volumes:
      - ./pipeline/:/usr/share/logstash/pipeline/
      - ./certs/:/usr/share/logstash/certs/
    ports:
      - "9600:9600"
      - "3001:3001/udp"
      - "3002:3002/udp"

A example pipeline output

output {
elasticsearch {
hosts => ["https://192.168.50.24:9200"]
ssl => true
ssl_certificate_verification => false
cacert => "/usr/share/logstash/certs/proxysoc.pem"
user => logstash_fccsa
password => ********************
index => "forti_ips_scbraga-%{+YYYY.MM.dd}"
v1/elasticsearch-fccsa-geoip.json"
template_overwrite => "true"
}
stdout { codec => rubydebug }
}

The output error on docker-compose console errors

logstash-bs4it | [2021-12-01T00:07:24,520][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://logstash_fccsa:xxxxxx@192.168.50.24:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://logstash_fccsa:xxxxxx@192.168.50.24:9200/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.