Count documents
Action ID:tools.elasticsearch.count_documents
Count documents matching an optional Query DSL query.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-count
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Delete document
Action ID:tools.elasticsearch.delete_document
Delete an Elasticsearch document by ID.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Get document
Action ID:tools.elasticsearch.get_document
Get an Elasticsearch document by ID.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Get field capabilities
Action ID:tools.elasticsearch.get_field_capabilities
Get the type and searchable/aggregatable capabilities of fields across indices.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-field-caps
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Get mapping
Action ID:tools.elasticsearch.get_mapping
Get mapping definitions for an Elasticsearch index.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-mapping
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Index document
Action ID:tools.elasticsearch.index_document
Create or replace a document in an Elasticsearch index or data stream. Omit document_id to let Elasticsearch generate one.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-index
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.List indexes
Action ID:tools.elasticsearch.list_indexes
List indexes in the Elasticsearch cluster as JSON.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-indices
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Optional native cat indices query parameters. The format parameter is always set to json.Default:
null.Run EQL query
Action ID:tools.elasticsearch.eql
Run an API-native Event Query Language query for event correlation and threat hunting.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-search
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Run ES|QL query
Action ID:tools.elasticsearch.esql
Run an API-native ES|QL query for security investigation and threat hunting.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-query
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Search events
Action ID:tools.elasticsearch.search_events
Search Elasticsearch events with a query DSL body and result limit.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.SQL query
Action ID:tools.elasticsearch.sql_query
Run an Elasticsearch SQL query. Pass cursor from a previous response to fetch the next page.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-query
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
API-native JSON request body, e.g.
query, fetch_size, filter, params, time_zone, or cursor.Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.Update document
Action ID:tools.elasticsearch.update_document
Partially update an Elasticsearch document by ID (doc), with a script, or as an upsert.
Reference: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update
Secrets
Required secrets:elasticsearch: required valuesELASTIC_API_KEY.
Input fields
API-native JSON request body, e.g.
doc (partial document), script, upsert, doc_as_upsert, detect_noop.Elasticsearch base URL (e.g. https://localhost:9200).Default:
null.