Logstash doesn't get logs from other container in Azure container group

Hey, I'm trying to debug why my Azure container based Logstash being a side car to my test application that periodically sends out logs with gelf isn't consuming those logs. So both containers (logstash and my app) are hosted by Azure container group, so that means I have azure responsible for DNS stuff, but somehow logstash doesn't receive it.

I know that the connection to Elastic works since I get this Log:

[2023-12-06T17:25:18,415][INFO ][logstash.outputs.elasticsearch][main] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://username:url/]}}
[2023-12-06T17:25:18,899][WARN ][logstash.outputs.elasticsearch][main] Restored connection to ES instance {:url=>"https://username:url/"}

This is the error:

[2023-12-06T17:46:47,277][ERROR][logstash.licensechecker.licensereader] Unable to retrieve Elasticsearch cluster info. {:message=>"No Available connections", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError}
[2023-12-06T17:46:47,278][ERROR][logstash.licensechecker.licensereader] Unable to retrieve license information from license server {:message=>"No Available connections"}
[2023-12-06T17:46:48,490][INFO ][logstash.licensechecker.licensereader] Failed to perform request {:message=>"elasticsearch: Name or service not known", :exception=>Manticore::ResolutionFailure, :cause=>#<Java::JavaNet::UnknownHostException: elasticsearch: Name or service not known>}
[2023-12-06T17:46:48,491][WARN ][logstash.licensechecker.licensereader] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://elasticsearch:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://elasticsearch:9200/][Manticore::ResolutionFailure] elasticsearch: Name or service not known"}

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