Sim

Elasticsearch

Search, index, and manage data in Elasticsearch

Elasticsearch is a powerful distributed search and analytics engine that enables you to index, search, and analyze large volumes of data in real time. It’s widely used for powering search features, log and event data analytics, observability, and more.

With Elasticsearch in Sim, you gain programmatic access to core Elasticsearch capabilities, including:

  • Search documents: Perform advanced searches on structured or unstructured text using Query DSL, with support for sorting, pagination, and field selection.
  • Index documents: Add new documents or update existing ones in any Elasticsearch index for immediate retrieval and analysis.
  • Get, update, or delete documents: Retrieve, modify, or remove specific documents by ID.
  • Bulk operations: Execute multiple indexing or update actions in a single request for high-throughput data processing.
  • Manage indexes: Create, delete, or get details about indexes as part of your workflow automation.
  • Cluster monitoring: Check the health and stats of your Elasticsearch deployment.

Sim's Elasticsearch tools work with both self-hosted and Elastic Cloud environments. Integrate Elasticsearch into your agent workflows to automate data ingestion, search across vast datasets, run reporting, or build custom search-powered applications – all without manual intervention.

Usage Instructions

Integrate Elasticsearch into workflows for powerful search, indexing, and data management. Supports document CRUD operations, advanced search queries, bulk operations, index management, and cluster monitoring. Works with both self-hosted and Elastic Cloud deployments.

Tools

Search documents in Elasticsearch using Query DSL. Returns matching documents with scores and metadata.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesIndex name to search
querystringNoQuery DSL as JSON string
fromnumberNoStarting offset for pagination (default: 0)
sizenumberNoNumber of results to return (default: 10)
sortstringNoSort specification as JSON string
sourceIncludesstringNoComma-separated list of fields to include in _source
sourceExcludesstringNoComma-separated list of fields to exclude from _source
trackTotalHitsbooleanNoTrack accurate total hit count (default: true)

Output

ParameterTypeDescription
tooknumberTime in milliseconds the search took
timed_outbooleanWhether the search timed out
hitsobjectSearch results with total count and matching documents
aggregationsjsonAggregation results if any

elasticsearch_index_document

Index (create or update) a document in Elasticsearch.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesTarget index name
documentIdstringNoDocument ID (auto-generated if not provided)
documentstringYesDocument body as JSON string
refreshstringNoRefresh policy: true, false, or wait_for

Output

ParameterTypeDescription
_indexstringIndex where the document was stored
_idstringDocument ID
_versionnumberDocument version
resultstringOperation result (created or updated)

elasticsearch_get_document

Retrieve a document by ID from Elasticsearch.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesIndex name
documentIdstringYesDocument ID to retrieve
sourceIncludesstringNoComma-separated list of fields to include
sourceExcludesstringNoComma-separated list of fields to exclude

Output

ParameterTypeDescription
_indexstringIndex name
_idstringDocument ID
_versionnumberDocument version
foundbooleanWhether the document was found
_sourcejsonDocument content

elasticsearch_update_document

Partially update a document in Elasticsearch using doc merge.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesIndex name
documentIdstringYesDocument ID to update
documentstringYesPartial document to merge as JSON string
retryOnConflictnumberNoNumber of retries on version conflict

Output

ParameterTypeDescription
_indexstringIndex name
_idstringDocument ID
_versionnumberNew document version
resultstringOperation result (updated or noop)

elasticsearch_delete_document

Delete a document from Elasticsearch by ID.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesIndex name
documentIdstringYesDocument ID to delete
refreshstringNoRefresh policy: true, false, or wait_for

Output

ParameterTypeDescription
_indexstringIndex name
_idstringDocument ID
_versionnumberDocument version
resultstringOperation result (deleted or not_found)

elasticsearch_bulk

Perform multiple index, create, delete, or update operations in a single request for high performance.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringNoDefault index for operations that do not specify one
operationsstringYesBulk operations as NDJSON string (newline-delimited JSON)
refreshstringNoRefresh policy: true, false, or wait_for

Output

ParameterTypeDescription
tooknumberTime in milliseconds the bulk operation took
errorsbooleanWhether any operation had an error
itemsarrayResults for each operation

elasticsearch_count

Count documents matching a query in Elasticsearch.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesIndex name to count documents in
querystringNoOptional query to filter documents (JSON string)

Output

ParameterTypeDescription
countnumberNumber of documents matching the query
_shardsobjectShard statistics

elasticsearch_create_index

Create a new index with optional settings and mappings.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesIndex name to create
settingsstringNoIndex settings as JSON string
mappingsstringNoIndex mappings as JSON string

Output

ParameterTypeDescription
acknowledgedbooleanWhether the request was acknowledged
shards_acknowledgedbooleanWhether the shards were acknowledged
indexstringCreated index name

elasticsearch_delete_index

Delete an index and all its documents. This operation is irreversible.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesIndex name to delete

Output

ParameterTypeDescription
acknowledgedbooleanWhether the deletion was acknowledged

elasticsearch_get_index

Retrieve index information including settings, mappings, and aliases.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
indexstringYesIndex name to retrieve info for

Output

ParameterTypeDescription
indexjsonIndex information including aliases, mappings, and settings

elasticsearch_cluster_health

Get the health status of the Elasticsearch cluster.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth
waitForStatusstringNoWait until cluster reaches this status: green, yellow, or red
timeoutstringNoTimeout for the wait operation (e.g., 30s, 1m)

Output

ParameterTypeDescription
cluster_namestringName of the cluster
statusstringCluster health status: green, yellow, or red
number_of_nodesnumberTotal number of nodes in the cluster
number_of_data_nodesnumberNumber of data nodes
active_shardsnumberNumber of active shards
unassigned_shardsnumberNumber of unassigned shards

elasticsearch_cluster_stats

Get comprehensive statistics about the Elasticsearch cluster.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesDeployment type: self_hosted or cloud
hoststringNoElasticsearch host URL (for self-hosted)
cloudIdstringNoElastic Cloud ID (for cloud deployments)
authMethodstringYesAuthentication method: api_key or basic_auth
apiKeystringNoElasticsearch API key
usernamestringNoUsername for basic auth
passwordstringNoPassword for basic auth

Output

ParameterTypeDescription
cluster_namestringName of the cluster
statusstringCluster health status
nodesobjectNode statistics including count and versions
indicesobjectIndex statistics including document count and store size

Notes

  • Category: tools
  • Type: elasticsearch
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started