# Using amazon\_es output plugin via proxy

**URL:** <https://discuss.elastic.co/t/using-amazon-es-output-plugin-via-proxy/247667>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [September 6, 2020, 10:26am UTC](https://discuss.elastic.co/t/using-amazon-es-output-plugin-via-proxy/247667 "2020-09-06T10:26:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abolurah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abolurah/32/68804_2.png) [@Abolurah](https://discuss.elastic.co/u/Abolurah)\
**Post date:** [September 6, 2020, 10:26am UTC](https://discuss.elastic.co/t/using-amazon-es-output-plugin-via-proxy/247667/1 "2020-09-06T10:26:21Z")

</div>

Hi ,  
This is the only knowledge sharing with the community,  
after long hours spent on issue solving of sending data via amazon\_es output plugin,  
only thing you need to do is to add your proxy like an example below, you will not find it in amazon documentation as well maybe tiny sentence like :  
"port (string, default 443) - Amazon Elasticsearch Service listens on port 443 for HTTPS (default) and port 80 for HTTP. Tweak this value for a custom proxy."

In our case Logstsh was running on docker, that been hosted on VM, and this VM was running on simulator.  
We added environment variable to the simulator, it didn't helped, than to VN same issue, even added to docker itself, it didn't help until we added the proxy to the plugin itself.

So the solution looks like this:

> amazon\_es {  
> **proxy =\> [http://web-proxy.us.mycorp.net:8080](http://web-proxy.us.mycorp.net:8080)** # \<\<\<\<\<\<\<\<\<\<\<\<------------ This ls the line , add your proxy address  
> hosts =\> [https://search-amazon-kjbvfkjbtvrtbvjb5v8656ub8.us-east-1.es.amazonaws.com](https://search-amazon-kjbvfkjbtvrtbvjb5v8656ub8.us-east-1.es.amazonaws.com)  
> region =\> us-east-1  
> aws\_access\_key\_id =\> YOUR\_KEY\_HERE  
> aws\_secret\_access\_key =\> LOGSTASH\_\_SECRET\_KEY  
> index =\> some\_index\_name
> 
> ```
> }
> 
> ```

- You may add proxy address directly or by adding an environment variable and use it in the plugin

I hope it will help you and save your time

---

<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:** [October 4, 2020, 10:26am UTC](https://discuss.elastic.co/t/using-amazon-es-output-plugin-via-proxy/247667/2 "2020-10-04T10:26:31Z")

</div>

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