---
title: Elastic Agent to Logstash (for enrichment) to Elasticsearch
description: Info on configuring Elastic Agent: Fleet and Elastic Agent Guide, Configuring outputs for Elastic Agent. For info on Logstash for enriching data, check...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4306/manage-data/ingest/ingest-reference-architectures/ls-enrich
products:
  - Elastic Agent
---

# Elastic Agent to Logstash (for enrichment) to Elasticsearch
![Image showing Elastic Agent collecting data](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4306/manage-data/images/ingest-ea-ls-enrich.png)

<definitions>
  <definition term="Ingest models">
    - Elastic Agent to Elasticsearch using Logstash to enrich the data
    - Elastic Agent to Logstash for enrichment based on fields in the Elastic Agent data to Elasticsearch
  </definition>
  <definition term="Use when">
    - Data enrichment in Elasticsearch is not practical for business or technical reasons
    - Your use case requires data enrichment based on fields in the Elastic Agent data. Logstash can collect enrichment data based on those fields, and then send the data to Elasticsearch.
  </definition>
  <definition term="Examples">
    - Data that changes frequently and is updated using an external source, such as stock ticker data
    - Enrichment data is proprietary and cannot be stored elsewhere.
    - Enrichment is done with an HTTP API whose return depends on values from the document. Example: An API that takes geo points with the collected data and returns available real estate in the region, and then passes to Logstash enrichment for enrichment between agents and Elasticsearch.
  </definition>
</definitions>


## Resources

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

For info on Logstash for enriching data, check out these sections in the [Logstash Reference](https://docs-v3-preview.elastic.dev/elastic/logstash/tree/main/reference):
- [Logstash Elastic Agent input](https://docs-v3-preview.elastic.dev/elastic/logstash-docs-md/tree/main/lsr/plugins-inputs-elastic_agent)
- [Logstash plugins for enriching data](https://docs-v3-preview.elastic.dev/elastic/logstash/tree/main/reference/lookup-enrichment)
- [Logstash filter plugins](https://docs-v3-preview.elastic.dev/elastic/logstash-docs-md/tree/main/lsr/filter-plugins)
- [Logstash Elasticsearch output](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)