How to set License Server

I'm trying to setup a logstash service via docker-swarm.

I'm running it like this via a docker-compose file:

  logstash:
    image: docker.elastic.co/logstash/logstash:7.3.1
    command: logstash -e 'input{ gelf{ use_tcp => true }} output { elasticsearch{ hosts => ["http://esm2:9200"] } stdout{} }'

I'm getting this error messages:

[ERROR][logstash.licensechecker.licensereader] Unable to retrieve license information from license server {:message=>"No Available connections"}
[WARN ][logstash.licensechecker.licensereader] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://elasticsearch:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://elasticsearch:9200/][Manticore::ResolutionFailure] elasticsearch: Name or service not known"}

The url in these messages are obviously wrong. So how do I overwrite them?

I have tried using environment variables, but am getting the exact same error message:

  xpack.monitoring.enabled=true
  xpack.monitoring.elasticsearch.url: http://esm2:9200

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