> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goldsky.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Elasticsearch sink for Mirror pipelines

> Configure the Mirror Elasticsearch sink to index streaming onchain events for full-text search, autocomplete suggestions, and real-time aggregations.

<Warning>
  Mirror is Goldsky's previous-generation pipeline product. If you're building a new pipeline, use [Turbo](/turbo-pipelines/introduction) instead. See the [Mirror vs. Turbo comparison](/mirror-vs-turbo), or the [migration guide](/turbo-pipelines/migrate-from-mirror) if you have an existing Mirror pipeline.
</Warning>

Give your users blazing-fast auto-complete suggestions, full-text fuzzy searches, and scored recommendations based off of on-chain data.

[Elasticsearch](https://www.elastic.co/) is the leading search datastore, used for a wide variety of usecase for billions of datapoints a day, including search, roll-up aggregations, and ultra-fast lookups on text data.

Goldsky supports real-time insertion into Elasticsearch, with event data updating in Elasticsearch indexes as soon as it gets finalized on-chain.

See the [Elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/elasticsearch-intro.html) to see more of what it can do!

Full configuration details for Elasticsearch sink is available in the [reference](/mirror/reference/config-file/pipeline#elasticsearch) page.

Contact us at [sales@goldsky.com](mailto:sales@goldsky.com) to learn more about how we can power search for your on-chain data!

## Secrets

Create an Elasticsearch secret with the following CLI command:

```shell theme={null}
goldsky secret create --name AN_ELASTICSEARCH_SECRET --value '{
  "host": "Type.String()",
  "username": "Type.String()",
  "password": "Type.String()",
  "type": "elasticsearch" 
}'
```


## Related topics

- [Supported Mirror pipeline sinks and destinations](/mirror/sinks/supported-sinks.md)
- [Webhook sink for Mirror pipelines](/mirror/sinks/webhook.md)
- [Kafka sink for Mirror pipelines](/mirror/sinks/kafka.md)
- [PostgreSQL sink for Mirror pipelines](/mirror/sinks/postgres.md)
- [TimescaleDB sink for Mirror pipelines](/mirror/sinks/timescale.md)
