# Elastic Agent Elasticsearch output via proxy

**URL:** <https://discuss.elastic.co/t/elastic-agent-elasticsearch-output-via-proxy/305639>\
**Category:** Elasticsearch\
**Tags:** fleet, elastic-agent\
**Created:** [May 25, 2022, 7:17pm UTC](https://discuss.elastic.co/t/elastic-agent-elasticsearch-output-via-proxy/305639 "2022-05-25T19:17:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RLPowellJr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rlpowelljr/32/97049_2.png) [@RLPowellJr](https://discuss.elastic.co/u/RLPowellJr)\
**Post date:** [May 25, 2022, 7:17pm UTC](https://discuss.elastic.co/t/elastic-agent-elasticsearch-output-via-proxy/305639/1 "2022-05-25T19:17:40Z")

</div>

Greetings all!

I am looking for a sample proxy configuration to use with the Elasticsearch output for Fleet-managed Elastic Agents. I'm working with a group who wants to expose as little as possible of their Elastic Stack to the environment being monitored, so they're looking to have the Beats (which are of course managed/configured by Elastic Agent) send their Elasticsearch output to a proxy that then relays to the Elasticsearch cluster nodes. The documentation at [Use a proxy server with Elastic Agent and Fleet | Fleet and Elastic Agent Guide [8.2] | Elastic](http://elastic.co/guide/en/fleet/8.2/fleet-agent-proxy-support.html) shows just one entry, for the proxy URL, in the Advanced YAML configuration block. Are there any other (relatively) well-known settings I can recommend they include?

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [May 30, 2022, 4:47pm UTC](https://discuss.elastic.co/t/elastic-agent-elasticsearch-output-via-proxy/305639/2 "2022-05-30T16:47:38Z")

</div>

The proxy can also be retrieved through environment variables `HTTPS_PROXY` or `HTTP_PROXY`.

---

<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:** [June 27, 2022, 4:48pm UTC](https://discuss.elastic.co/t/elastic-agent-elasticsearch-output-via-proxy/305639/3 "2022-06-27T16:48:13Z")

</div>

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