Unable to send data from logstash to aws elastic service using amazon_es plugin

I have setup logstash config to send postgres data to aws elastic and have policy set to public for now

output {
stdout {codec => rubydebug}
amazon_es {
hosts => ["https://.us-east-2.es.amazonaws.com"]
region => "us-east-2"
aws_access_key_id => '
aws_secret_access_key => '***********************************'
port => "443"
index => "content_search_v2"
document_type => "content_search"
document_id => "%{code}"

[logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://***.us-east-2.es.amazonaws.com:443/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '403' contacting Elasticsearch at URL 'https://.us-east-2.es.amazonaws.com:443/

when i try to put data for same endpoint using postman data is getting inserted can any one help me to solve this problem with logstash m using windows 10 logstash version 7.1.1

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