We have a new elastic cloud on elastic.co
on my local logstash installation, I want logstash index data into our cloud
cloud.id: "MYID " # I've putted my ID
cloud.auth: login:password #login and password lof logstash_sytem user created on the cloud
but when I start logstash, I have the following message
[root@logstash logstash]# /usr/share/logstash/bin/logstash --path.settings=/etc/logstash/
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connexion refusée (Connection refused)
output {
if [type] == "SQL_SERVER_lock"
{
elasticsearch {
cloud.id: my id
cloud.auth: login:password
index => "nav11_sql_lock-%{+YYYY.MM.dd}"
}
}
}
thanks
the error is
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connexion refusée (Connection refused)
No Available connections
No Available connections
No Available connections
No Available connections
Did you have any idea why logstash wants to connect to a local elasticsearch ? even cloud is pecified ?
[2018-06-11T12:18:24,869][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://127.0.0.1:9200/, :path=>"/"}
[2018-06-11T12:18:24,877][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://127.0.0.1:9200/", :error_type=>LogSt
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://127.0.0.1:9200/][Manticore::SocketException] Connexion refusée (Connection r
efused)"}
[2018-06-11T12:18:29,905][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://127.0.0.1:9200/, :path=>"/"}
[2018-06-11T12:18:29,909][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://127.0.0.1:9200/", :error_type=>LogSt
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://127.0.0.1:9200/][Manticore::SocketException] Connexion refusée (Connection r
efused)"}
[2018-06-11T12:18:34,925][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://127.0.0.1:9200/, :path=>"/"}
[2018-06-11T12:18:34,931][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://127.0.0.1:9200/", :error_type=>LogSt
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://127.0.0.1:9200/][Manticore::SocketException] Connexion refusée (Connection r
efused)"}
[2018-06-11T12:18:39,934][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://127.0.0.1:9200/, :path=>"/"}
[2018-06-11T12:18:39,940][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://127.0.0.1:9200/", :error_type=>LogSt
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://127.0.0.1:9200/][Manticore::SocketException] Connexion refusée (Connection r
efused)"}
[2018-06-11T12:18:44,948][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://127.0.0.1:9200/, :path=>"/"}
[2018-06-11T12:18:44,954][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://127.0.0.1:9200/", :error_type=>LogSt
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://127.0.0.1:9200/][Manticore::SocketException] Connexion refusée (Connection r
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.