# Unable to send data from logstash to aws elastic service using amazon\_es plugin

**URL:** <https://discuss.elastic.co/t/unable-to-send-data-from-logstash-to-aws-elastic-service-using-amazon-es-plugin/221110>\
**Category:** Logstash\
**Created:** [February 26, 2020, 8:35pm UTC](https://discuss.elastic.co/t/unable-to-send-data-from-logstash-to-aws-elastic-service-using-amazon-es-plugin/221110 "2020-02-26T20:35:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham\_Dangare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham_dangare/32/45398_2.png) [@Shubham\_Dangare](https://discuss.elastic.co/u/Shubham_Dangare)\
**Post date:** [February 26, 2020, 8:35pm UTC](https://discuss.elastic.co/t/unable-to-send-data-from-logstash-to-aws-elastic-service-using-amazon-es-plugin/221110/1 "2020-02-26T20:35:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 25, 2020, 8:35pm UTC](https://discuss.elastic.co/t/unable-to-send-data-from-logstash-to-aws-elastic-service-using-amazon-es-plugin/221110/2 "2020-03-25T20:35:47Z")

</div>

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