Elasticsearch integration
Search, count, index, and fetch Elasticsearch documents.
How it works
Each Elasticsearch action is a YAML template or Python function in Tracecat's open-source registry, under tools.elasticsearch. Add an action as a step in a workflow, or give it to an agent as a tool.
Credentials
Add these in Tracecat before running the actions. How credentials work
- Secret
elasticsearchwithELASTIC_API_KEY
Actions
Missing an integration? Write your own actions in YAML or Python in a custom registry and sync them from your Git repository.
Count documents
Count documents matching an optional Query DSL query.
Delete document
Delete an Elasticsearch document by ID.
Get document
Get an Elasticsearch document by ID.
Get field capabilities
Get the type and searchable/aggregatable capabilities of fields across indices.
Get mapping
Get mapping definitions for an Elasticsearch index.
Index document
Create or replace a document in an Elasticsearch index or data stream. Omit `document_id` to let Elasticsearch generate one.
List indexes
List indexes in the Elasticsearch cluster as JSON.
Run EQL query
Run an API-native Event Query Language query for event correlation and threat hunting.
Run ES|QL query
Run an API-native ES|QL query for security investigation and threat hunting.
Search events
Search Elasticsearch events with a query DSL body and result limit.
SQL query
Run an Elasticsearch SQL query. Pass `cursor` from a previous response to fetch the next page.
Update document
Partially update an Elasticsearch document by ID (`doc`), with a script, or as an upsert.