Hello, i am having troubles with Logstash for a week now.
I do not know why does the error persists. To start Logstash, i use the following command : ./bin/logstash -f /"relative path to the file"/logstash-sample.conf .
The error i am getting in the terminal is as follows :
[2023-07-31T21:05:27,244][INFO ][logstash.outputs.elasticsearch][main] Failed to perform request {:message=>"Network is unreachable", :exception=>Manticore::SocketException, :cause=>#<Java::JavaNet::SocketException: Network is unreachable>}
[2023-07-31T21:05:27,246][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://localhost:9200/", :exception=>LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Network is unreachable"}
[2023-07-31T21:05:34,267][INFO ][logstash.outputs.elasticsearch][main] Failed to perform request {:message=>"Network is unreachable", :exception=>Manticore::SocketException, :cause=>#<Java::JavaNet::SocketException: Network is unreachable>}
[2023-07-31T21:05:34,269][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://localhost:9200/", :exception=>LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Network is unreachable"}
[2023-07-31T21:05:42,913][INFO ][logstash.outputs.elasticsearch][main] Failed to perform request {:message=>"Network is unreachable", :exception=>Manticore::SocketException, :cause=>#<Java::JavaNet::SocketException: Network is unreachable>}
[2023-07-31T21:05:42,915][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://localhost:9200/", :exception=>LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Network is unreachable"}.
Please help me, Thanks.