Elasticsearch

Queries your distributed search indices to trigger workflows based on log patterns, automates index management, and pulls real time analytics into your operational tools.

Try Elasticsearch in Ceven

Ask Ceven anything
Standard

Why use Ceven?

  1. AI native Elasticsearch integration

    • Describe the outcome and Ceven picks the right Elasticsearch calls, fills the parameters, and checks the result.
    • Structured, agent friendly tool schemas so each call runs reliably instead of by guesswork.
    • Rich coverage for reading, writing, and querying your Elasticsearch data, across all 4 of its actions.
  2. Managed auth

    • Built in OAuth with automatic token refresh and rotation.
    • One place to manage, scope, and revoke Elasticsearch access.
    • Per user and per environment credentials instead of shared keys.
  3. Agent optimized design

    • Actions are tuned from real success and error rates so reliability climbs over time.
    • Full execution logs so you always know what ran in Elasticsearch, when, and on whose behalf.
    • The agent pauses and asks when Elasticsearch is unclear instead of plowing ahead.
  4. Enterprise grade security

    • Fine grained access so you control which agents and people can reach Elasticsearch.
    • Least privilege by default, read scopes first and only the writes a workflow needs.
    • A full audit trail of every Elasticsearch action to support review and sign off.

Supported tools

Every action Ceven's agents can run on Elasticsearch, and when to use it.

Get Index Schema
Use this when you need to understand the structure, field types, and mappings of a specific index before running a complex query.
List Indices
Pull a list of all available indices in your cluster, optionally filtering by health status or naming patterns.
Query Index
Search for documents in an index using filters, time ranges, and pagination to find specific log entries or records.
Update Mapping
Add new fields to an existing index mapping to accommodate new data types without recreating the index.
Delete Index
Remove an entire index and its documents from the cluster. Use this for cleaning up old time series data.
Create Index
Initialize a new index with specific settings and mappings for a new data stream.
Index Document
Push a single JSON document into a specific index. Use this to log custom workflow events.
Bulk Index
Upload multiple documents in a single request to improve throughput during data migrations.
Update Document
Modify specific fields within an existing document using its unique ID.
Delete Document
Remove a specific document from an index by its ID.
Get Cluster Health
Check if the cluster is green, yellow, or red to determine if the system can handle heavy queries.
Run Aggregation
Calculate sums, averages, or unique counts across a dataset to generate a high level report.

12 actions · scroll to see them all

Frequently asked questions

Ceven uses a specialized translation layer that maps your natural language requests into valid Elasticsearch Query DSL. When you ask for documents from last Tuesday with a specific error code, the agent identifies the time range, the field name for the error, and the match type. It then constructs the JSON payload required by the Elasticsearch REST API. If the query fails due to a mapping conflict, the agent uses the Get Index Schema tool to inspect the field types and automatically rewrites the query to match the actual data structure before trying again, ensuring you get results without needing to know the underlying syntax.
Yes. Ceven can interact with your Index Lifecycle Management settings to automate how data moves from hot to warm to cold tiers. You can set up a workflow where Ceven monitors the disk usage of your hot nodes and triggers a policy change to move older indices to cheaper storage. This prevents the cluster from hitting the flood stage watermark which would otherwise put your indices into read only mode. The agent can also be used to delete indices that have passed their retention period if you prefer a custom logic flow over the native ILM policies.
Ceven respects the index.max_result_window setting in Elasticsearch, which typically defaults to ten thousand documents. If your query returns more results than this limit, the agent will not simply fail. Instead, it automatically switches to using the scroll API or search after pagination. It fetches data in smaller batches and aggregates the results in the workflow context. This ensures that you can analyze millions of rows without crashing the agent or triggering a circuit breaker exception on the Elasticsearch nodes, though very large exports may take longer to process.
Ceven connects to Elasticsearch using the credentials or API keys you provide. We recommend using a role based access control model where the Ceven user is limited to specific indices. For example, you can create a role that only has read access to your application logs and write access to a specific audit index. Ceven operates strictly within these permissions. If the agent attempts an action like deleting an index but the provided key only has read permissions, Elasticsearch will return a four hundred three forbidden error, which Ceven reports back to you immediately.
Ceven can proactively prevent mapping explosions by monitoring the number of fields in your indices. A mapping explosion occurs when too many unique fields are created, often due to dynamic mapping of unstructured JSON, which can crash a cluster. You can build a workflow where Ceven regularly runs the Get Index Schema tool and alerts you when an index exceeds a specific field count threshold. The agent can then suggest which fields to flatten or help you implement a strict mapping policy to ensure the stability of your cluster nodes.
Ceven supports most versions from seven point zero onwards. Because Elasticsearch occasionally introduces breaking changes to the REST API between major versions, Ceven asks for your version number during the initial connection process. This allows the agent to select the correct API payload format. If you are running a very old version, some advanced aggregation tools might be disabled because the underlying API endpoints do not exist. We recommend upgrading to the latest stable version to take full advantage of the real time analytics capabilities provided by the agent.
Ceven implements an exponential backoff strategy to handle rate limiting. If your Elasticsearch cluster returns a four twenty nine too many requests error, the agent pauses and retries the request with increasing delays. This prevents the agent from contributing to a cluster outage during a period of high load. You can also configure your Ceven workflows to check the cluster health endpoint before initiating a heavy bulk index operation, allowing the agent to skip or reschedule the task if the cluster is already under significant pressure.
Yes, Ceven can orchestrate data migrations using the reindex API. You can tell the agent to move data from an old index to a new one with an updated mapping. The agent triggers the reindex task and then monitors the task ID to track progress. Once the migration is complete, the agent can verify the document counts between the source and destination indices to ensure no data was lost. This turns a manual and risky process into a governed workflow with built in validation and reporting.

Alternatives to Elasticsearch

Other tools that solve a similar problem. Ceven supports these too, so you can switch or run more than one at once.

Algolia logoAlgoliaMeilisearch logoMeilisearchTypesense logoTypesenseSolr logoSolr

Try Ceven on your stack

Plug Ceven on top of the tools you already run. Connect Elasticsearch and the rest of your stack, describe the outcome, and its agents handle the work end to end, days of it in minutes.

Get started for free