---
title: Elastic Agent to Logstash to Elasticsearch: Logstash as a proxy
description: Info on configuring Elastic Agent: Fleet and Elastic Agent Guide, Configuring outputs for Elastic Agent. Info on Logstash and Logstash plugins: Logstash...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4490/manage-data/ingest/ingest-reference-architectures/ls-networkbridge
products:
  - Elastic Agent
  - Logstash
---

# Elastic Agent to Logstash to Elasticsearch: Logstash as a proxy
![Image showing Elastic Agents collecting data and sending to Logstash for proxying before sending on to Elasticsearch](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4490/manage-data/images/ingest-ea-ls-bridge.png)

<definitions>
  <definition term="Ingest model">
    Data path: Elastic Agent to Logstash as bridge to Elasticsearch on Elastic Stack network Control path: Elastic Agent to Fleet Server to Elasticsearch
  </definition>
  <definition term="Use when">
    Agents have network restrictions for connecting to Elasticsearch on Elastic Stack deployed outside of the agent network
  </definition>
  <definition term="Example">
    You can send data from multiple Elastic Agents through your demilitarized zone (DMZ) to Logstash, and then use Logstash as a proxy through your firewall to Elastic Cloud. This approach helps reduce the number of firewall exceptions needed to forward data from large numbers of Elastic Agents.
  </definition>
</definitions>


## Resources

Info on configuring Elastic Agent:
- [Fleet and Elastic Agent Guide](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4490/reference/fleet)
- [Configuring outputs for Elastic Agent](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4490/reference/fleet/elastic-agent-output-configuration)

Info on Logstash and Logstash plugins:
- [Logstash Reference](https://docs-v3-preview.elastic.dev/elastic/logstash/tree/main/reference)
- [Elasticsearch output plugin](https://docs-v3-preview.elastic.dev/elastic/logstash-docs-md/tree/main/lsr/plugins-outputs-elasticsearch)

Info on Elasticsearch:
- [Elasticsearch Guide](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference)