# Connect Elasticsearch with Open Flow

Source: https://openflow.run/en/integrations/elasticsearch/

[All integrations](https://openflow.run/en/integrations/)

Identify an index and a question to analyze its documents, mappings, and operational state.

*   [21 actions](https://openflow.run/en/integrations/elasticsearch/#integration-actions)
*   API key
*   Custom credentials
*   Data & analytics
*   Developer tools

[Connect Elasticsearch](https://console.openflow.run/connections/elasticsearch)

20,000 free app calls per month (paid services billed separately)

## What you can do

The connection supports index and document queries, cluster diagnostics, and selected index and document writes. Reindexing runs in the background and exposes a task for progress checks.

### Query Indices and Documents

Read mappings, search and count documents, and retrieve individual documents.

### Inspect Cluster and Index Operations

Read cluster diagnostics and index statistics, or check a background reindex task.

## All actions

21 actions

### Ping Cluster

Check whether the Elasticsearch cluster is reachable and return its health status.

`elasticsearch.ping_cluster`

### List Indices

List Elasticsearch indices visible to the connected user.

`elasticsearch.list_indices`

### Get Index Schema

Get mappings, settings, aliases, and field statistics for one Elasticsearch index.

`elasticsearch.get_index_schema`

### Query Index

Search an Elasticsearch index with text queries, filters, pagination, sorting, and aggregations.

`elasticsearch.query_index`

### Create Index

Create one Elasticsearch index with explicit mappings, settings, and aliases.

`elasticsearch.create_index`

### Delete Index

Permanently delete one or more Elasticsearch indices by exact name. This destroys data and cannot be undone, so wildcards, comma-separated lists, and \_all are rejected, and expectedCount must equal the number of names supplied.

`elasticsearch.delete_index`

### Update Index Mappings

Add or update field mappings on an existing Elasticsearch index. Existing field types cannot be changed in place, so incompatible changes require a new index and a reindex.

`elasticsearch.update_index_mappings`

### Get Index Stats

Get document, store, search, get, and indexing statistics for Elasticsearch indices. Counters such as searchQueryTotal are cumulative since each node started rather than a time window, so compare them against the node uptime in counterWindow before concluding that a zero means the index is never queried.

`elasticsearch.get_index_stats`

### List Aliases

List Elasticsearch aliases and the indices behind them, optionally filtered by alias or index pattern.

`elasticsearch.list_aliases`

### Update Aliases

Atomically add or remove Elasticsearch alias assignments in a single request, which is how an alias is switched between indices without downtime. This action cannot delete an index; use delete\_index for that.

`elasticsearch.update_aliases`

### Get Cluster Health

Get detailed Elasticsearch cluster health including shard counts and an optional per-index breakdown.

`elasticsearch.get_cluster_health`

### Get Cluster Nodes

List Elasticsearch cluster nodes with uptime, heap, disk, and role information. Node uptime is what makes the cumulative counters from get\_index\_stats interpretable.

`elasticsearch.get_cluster_nodes`

### List Shards

List Elasticsearch shard placement, state, and size, optionally limited to an index pattern or a shard state.

`elasticsearch.list_shards`

### Get Document

Get one Elasticsearch document by id. A missing document returns found as false instead of raising an error.

`elasticsearch.get_document`

### Index Document

Index or replace one document in an Elasticsearch index. Supplying documentId replaces that document, while omitting it lets Elasticsearch generate an id.

`elasticsearch.index_document`

### Delete Document

Delete one Elasticsearch document by id. A missing document returns a not\_found result instead of raising an error.

`elasticsearch.delete_document`

### Bulk Index Documents

Apply many Elasticsearch document writes in one bulk request. Each operation names its own index, and per-operation failures are reported in the response instead of failing the whole request.

`elasticsearch.bulk_index_documents`

### Count Documents

Count Elasticsearch documents matching a query without returning any hits, which is cheaper than a search when only the size of a result set matters.

`elasticsearch.count_documents`

### Delete By Query

Delete Elasticsearch documents matching a query. This destroys data and cannot be undone, so a bounded maxDocs and at least one of query, termFilters, rangeFilters, or timeFilter are required, the index name must be exact, and \_all is rejected. That makes it impossible to empty an entire index by accident. The action waits for the deletion to finish, and a large maxDocs can outlast that wait: a timeout does not cancel the deletion, which keeps running on the cluster with no task id to poll, so a retry after a timeout deletes a further batch.

`elasticsearch.delete_by_query`

### Reindex

Start an Elasticsearch reindex from one index to another and return a task id to poll with get\_task. The copy runs in the background, so this action returns before the data has moved.

`elasticsearch.reindex`

### Get Task

Get the state and progress of one Elasticsearch task, such as a reindex started by the reindex action.

`elasticsearch.get_task`

No actions match your search.

## Connect Elasticsearch with Open Flow

[Connect Elasticsearch](https://console.openflow.run/connections/elasticsearch)

20,000 free app calls per month (paid services billed separately)
