Connect to elasticsearch using logstash

I have opensearch cluster in aws us-east region and I have logstash installed on aws ubuntu server i us-west region. Both vpc are peered. Still I am not able to load logs to Elasticsearch using logstash

Below is the error.

INFO ] 2021-09-23 17:50:22.444 [Ruby-0-Thread-9: :1] amazonelasticsearch - Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>es-host:443/, :path=>"/"}
[WARN ] 2021-09-23 17:50:42.479 [Ruby-0-Thread-9: :1] amazonelasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"es-host:443/", :error_type=>LogStash::Outputs::AmazonElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [es-host:443/][Manticore::ConnectTimeout] connect timed out"}

what could be the suggesion for same. pls suggest .

Urgent response will be helpful
Thanks

My logstash.conf is

input {
file {
path => "your log file location”
start_position => "beginning"}}
filter {
grok {
match => {"message" => "%{TIMESTAMP_ISO8601:timestamp} ([%{DATA:thread}])? %{LOGLEVEL:level}%{SPACE}%{JAVACLASS:class}.%{DATA:method} - %{GREEDYDATA:loggedString}"
}}
mutate {remove_field => ["message" , "path" , "host" ]}}
output {amazon_es { hosts => [""]
ssl => true
region => "us-east-1"
index => "my index"
}
stdout{codec => "rubydebug"}
}

You will need to aws about this sorry, that's their output plugin and service.

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