Elasticsearch integration

Your Elasticsearch cluster from a flow. The action indexes, reads, changes and deletes documents, one by one, in Bulk or by query, and searches: with fields and values, with the Query DSL, with a vector, by meaning, with ES|QL or with SQL, and it can read every page of a big result. It also sets up the cluster: indices, aliases, data streams, templates, ingest pipelines, inference and tasks, and sends any call of the API, with two switches that decide whether it may delete or administer. The trigger starts a flow when a document arrives or changes, when a query alert fires or when Kibana or Watcher calls. It works with Elastic Cloud, Elastic Cloud Serverless and your own cluster, on Elasticsearch 7.17, 8 and 9, with an API key, a user and password, a token or a certificate. To use the same cluster with AI — an AI toolkit, the memory of an AI Node or a vector store — see Elasticsearch for AI.

⚠HostWebhook can do whatever the key can do. Give it an API key limited to the indices your flows use, and only the privileges they need: see An API key with only what your flows need.

Setup

1. Create the credential

Under Settings → Credentials, or straight from the node, pick the Elasticsearch credential type, name it, and fill in:

  • Connect with: the Endpoint, the address of the cluster, e.g. https://my-cluster.example.com:9200, or the Cloud ID that Elastic Cloud gives you, e.g. my-deployment:dXMtZWFzdC0x…. Never both. A clear http:// address sends the key unencrypted, so it is only accepted through a tunnel.
  • Authenticate with: API key is the way to go, and the only one Serverless has: paste the Encoded value Elasticsearch gives you, or the id:api_key pair. Or User and password, or a Bearer token (only the token, without the word Bearer), or a Client certificate: the certificate and its private key as text (the key can't have a passphrase). Only the fields of the way you choose are sent and kept.
  • Server certificate: see How the server is checked.
  • Extra headers (optional): only for a proxy in front of the cluster, e.g. X-Proxy-Token, up to 10. Never the key: Authorization and Host are written by HostWebhook and can't be set here. The values are secrets: they come back to the panel only in Edit keys and settings, after you verify it's you, and only for a person who can see them.
  • How do we reach it (optional tunnel): leave it direct for a cluster that answers on the internet; pick a tunnel for one that doesn't. See Where HostWebhook connects from.

The key, the password, the token and the private key are encrypted when you save. They come back to the panel only in Edit keys and settings, after you verify it's you, and only for a person who can see them; they leave the form as soon as they are sent. To change any of them, or the address, the way to authenticate, the certificate or the tunnel, click Edit keys and settings on the credential: the same form opens filled in (a key you can't see comes empty, and empty keeps it). It is saved over the same credential, so the nodes that use it keep working.

How the server is checked

The certificate of the cluster is always checked. There is no option to ignore it, here or anywhere else.

ChoiceWhen
The usual public certificatesThe default. Nothing to paste. Elastic Cloud, Serverless and any cluster with a certificate from a public authority.
Paste its CA certificateA cluster with its own certificate. The text of http_ca.crt, starting with -----BEGIN CERTIFICATE-----.
Use its SHA-256 fingerprintThe 64 digits Elasticsearch prints when it starts. It needs the cluster to send its CA; if it doesn't, paste the CA. The certificate is checked against it on every connection.

If the check fails you see “The cluster uses its own certificate. Paste its CA certificate, or its fingerprint, in the credential.” or, with a fingerprint, “The certificate of the cluster does not match the fingerprint of the credential. If the certificate changed, paste the new fingerprint or the CA.”

Where HostWebhook connects from

HostWebhook only connects to public hosts. It looks up the name, checks every address it got and connects to that same address, so a name can't answer one thing for the check and another for the connection. A name that resolves to a private address, a loopback address or a metadata address is refused when you save the credential and every time it connects: “The Endpoint is not a public address. Reach a cluster in a private network through a tunnel.” It never follows a redirect: “The Endpoint answered with a redirect, which HostWebhook never follows. Use the final address as the Endpoint.”

  • Elastic Cloud and Serverless answer on the internet: nothing to open. If you restricted the deployment to a private network or a private link, reach it through a tunnel.
  • Your own cluster (a VM, Docker, Kubernetes): a public address with a certificate, or a tunnel.
  • An Elastic Cloud deployment with a traffic filter (an IP filter) turns HostWebhook away unless it lists its address, 18.225.52.125; the Test says so (“The traffic filter of the deployment does not let HostWebhook in. Add the address 18.225.52.125 to the filter, e.g. in Network security of Elastic Cloud.”). In the Elastic Cloud console: Organization → Security → Network security → Create policy, an IP filter with that address and the region of your deployment. Then, in the deployment: Access and security → Security → Network security → Apply policies, and pick it. Traffic that matches an applied policy is allowed and all the rest is denied, so keep your own address in the filter too. It is not a missing privilege, and reconnecting changes nothing.

For a cluster that is not on the internet, run hostwh expose-tcp --target=localhost:9200 --id=prod-elasticsearch (or the Docker agent ghcr.io/hostwebhook/agent) on a machine that can reach it. Check in Settings → Tunnels that it shows online, and pick it in the How do we reach it field. The steps are in Reverse tunnel for databases. With a tunnel the destination is your own network, so there is nothing to allow on the firewall of the cluster, and HostWebhook connects to the agent and to nothing else. Putting, changing or removing a tunnel is done in Edit keys and settings: the tunnel decides where the key travels.

An API key with only what your flows need

In Kibana, on Dev Tools, create a key of its own for HostWebhook. This one reads three indices and writes in one:

jsonKibana · Dev Tools
POST /_security/api_key
{
  "name": "hostwebhook",
  "role_descriptors": {
    "hostwebhook": {
      "indices": [
        { "names": ["orders-*"], "privileges": ["read"] },
        { "names": ["orders-2026"], "privileges": ["write"] }
      ]
    }
  }
}

Copy the encoded value of the answer into the API key field. On Serverless, or if you prefer the screen, open Stack Management → API keys in Kibana, create the key with Control security privileges on, and paste the same role descriptor.

  • The operations that read (Get, Search, Count, Multi search, Vector, Semantic, ES|QL and SQL) need read on the indices they look at. It is also what lets the node list the indices and fields in its dropdowns.
  • The ones that write (Index, Update, Delete, Bulk) need write. The changes by query need read and write on the index, and Reindex read on the source and write on the destination (and create_index there if it does not exist yet).
  • The operations of indices, aliases, templates and pipelines ask Elasticsearch for the privilege of each call: usually create_index, delete_index or manage on the index, and manage_index_templates, manage_ingest_pipelines or monitor on the cluster. The table below says which each call asks for. Give them to a key of its own, for the flows that set the cluster up, and keep it apart from the key of the flows that only read or write documents.
  • Deleting an index, a data stream, a template or a pipeline also needs a switch of the node, which is Off until you turn it on. Never the superuser role.
  • Use a key with no write privilege for the flows that only search, and another for the ones that change: if a flow is wrong, the damage stops where the key stops.

What each call of G3 asks for

The cluster decides, call by call. This is what each operation of indices, aliases, templates and pipelines needs, checked on a cluster with a role that only reads and a role that writes. A 403 means that the key lacks one of them, on the index or on the cluster. The line names it when the cluster does (“Its role needs one of these privileges on that index: create_index, manage”: any one of them is enough); this table is to choose the role before you run the flow.

The callThe privilegeGiven on
List indices · Get index · Get mapping · List aliasesview_index_metadata (or read)the index
Create index · Create data streamcreate_index (or manage)the index or the data stream
Update mappingwrite (or manage): write is enoughthe index
Update settingsmanagethe index
Refresh indexmaintenance (or manage)the index
Add alias · Remove alias · Swap aliasmanagethe index and the alias
Delete index · Delete data streamdelete_index (or manage)the index or the data stream
List index templatesmonitor, or manage_index_templatesthe cluster
Put index template · Delete index templatemanage_index_templatesthe cluster
List pipelines · Simulate pipelineread_pipeline, or manage_ingest_pipelines: monitor is not enoughthe cluster
Put pipeline · Delete pipelinemanage_ingest_pipelinesthe cluster
List inference endpointsmonitorthe cluster
Cluster info and health · Get taskmonitorthe cluster
Cancel taskmanagethe cluster

2. Test the connection

Test connection asks the cluster three fixed questions: who answers, who the key is and whether it can do everything. It writes nothing. It answers with one line, e.g. Connected (84ms) · Elasticsearch 8.19.25 (default), signed in as API key "orders-writer", TLS 1.3: the version, the flavor, who the key is and the TLS the connection used. It adds via tunnel if it goes through one. It also warns you when:

  • the key can do everything: “This credential can do everything on the cluster. A key limited to the indices your flows use is safer.”
  • security is off: “Security is off on this cluster: anyone who can reach it can read and write. Turn it on, or reach the cluster only through a tunnel.”
  • the cluster is 7.17: “Elastic ended support for 7.17 on 15 January 2026. Documents and search work; ES|QL, inference and semantic search do not exist there.”
  • it is Serverless: “Serverless: the cluster API does not exist here, and queries cost compute.”

And it fails, with its own line, if the cluster is older than 7.17 (“HostWebhook works with Elasticsearch 7.17 and later. This cluster is older.”), if it is OpenSearch (“This is OpenSearch, not Elasticsearch. HostWebhook does not support it in this node yet: use an Elasticsearch cluster.”) or if something else answers (“That address does not answer like Elasticsearch. Check the Endpoint: a proxy or another service may be answering.”): a server is Elasticsearch only when it says so with the X-Elastic-Product header, which every version from 7.14 sends, so a proxy that copies its greeting does not pass. A failure of the connection comes back as a line in HostWebhook's words, never the text of the cluster. If the deployment has a traffic filter (Network security in Elastic Cloud) that does not list the address of HostWebhook, the Test says so (“The traffic filter of the deployment does not let HostWebhook in. Add the address 18.225.52.125 to the filter, e.g. in Network security of Elastic Cloud.”) instead of a missing privilege.

What HostWebhook keeps

  • The key, the password, the token, the private key and the values of the extra headers are encrypted, like the secrets of your other credentials. They come back to the panel only in Edit keys and settings, after you verify it's you, and only for a person who can see them.
  • The documents and results your cluster answers are not stored: they are in the run that used them, like the other databases.
  • The text of an error of the cluster is never repeated: its reason can carry pieces of your documents or your queries, so a failure says the status and the kind of error, in HostWebhook's words.

Operations

Drop an Elasticsearch node, pick the credential and an operation. There are 46, in ten groups. An index is chosen from the list that HostWebhook reads from your cluster (the indices, aliases and data streams the key can see) or typed: most flows write it as a template, e.g. {{payload.index}}. The fields of an index are listed the same way when the name is a plain one.

Documents

In the dropdownWhat it doesFieldsComes back as
Index documentCreates a document, or replaces the one that has the same ID. With no ID, Elasticsearch makes one.Index · Document ID · Document · Only create · Pipeline · Routing · Wait until searchableindex · id · result · version · seqNo · primaryTerm
Get documentOne document by its ID. It says if it was found, and brings its version for Only if unchanged.Index · Document ID · Fields · Routingid · index · found · version · seqNo · primaryTerm · source
Get many documentsSeveral documents by their IDs, up to 1,000. One run for each.Index · IDs (one per line) · Fieldsdocuments (each like Get document) · count · found
Document existsTrue or false, without bringing the document.Index · Document ID · Routingexists
Update documentChanges some fields of a document, or runs a script on it.Index · Document ID · Mode (Partial or Script) · Fields to change · Create if missing · Script · Script parameters · Upsert document · Only if unchanged · Retry on conflict · Routingindex · id · result · version · seqNo · primaryTerm
Delete documentDeletes a document by its ID.Index · Document ID · Only if unchanged · Routing · Wait until searchableindex · id · result · version · seqNo · primaryTerm
BulkMany creates, replaces, updates and deletes at once, from a list. It splits itself in requests of 5 MB. Not atomic: some items can work and others fail.Index (for the items with none) · Items · Continue on item errors · Wait until searchabletook · errors · count · succeeded · failed · batches · items (position, action, index, id, status, result, error)
  • One index name, no wildcards for the operations that write or read one document. A name is in lower case, can't have spaces or any of \ / ? " < > | , # :, and can't start with -, _ or +. Names that start with a dot (hidden and system indices) are refused.
  • Index document with an ID replaces the document that has it; turn on Only create to fail instead. Update document in Partial mode changes the fields you give and keeps the rest; in Script mode it runs a script.
  • Only if unchanged (Update and Delete) uses the seqNo and primaryTerm that Get document brought: if another change got in first, it fails with “The document changed or already exists (version conflict). Try again, or turn off Only if unchanged or Only create.” instead of overwriting it. Retry on conflict is the other way: it tries again.
  • Wait until searchable makes the answer come when the change shows up in searches. It is slower; use it when the next step searches for what this one wrote. In Update by query, Delete by query and Reindex the refresh is a step of its own after the change, and a bonus: a key that can write and delete but not refresh still gets its change, and the answer says refreshed: false.
  • The routing of a document comes back in the answer of Index, Update, Delete and Get document.
  • Get many documents and Bulk give a list: the next steps run once for each document or item of it.

By query

In the dropdownWhat it doesFieldsComes back as
Update by queryChanges the documents that match a query, with a script if you write one.Index · Query · Script · Script parameters · On conflict · Max documents · Stop if more than · Limit · Run in background · Wait until searchabletook · timedOut · total · updated · noops · versionConflicts · batches · failures (or task, when it runs in the background)
Delete by queryDeletes the documents that match a query.Index · Query · On conflict · Max documents · Stop if more than · Limit · Run in background · Wait until searchabletook · timedOut · total · deleted · noops · versionConflicts · batches · failures
ReindexCopies the documents of one index into another, with a query and a script if you write them.Source index · Destination index · Query · Script · Script parameters · Only create · Pipeline · On conflict · Max documents · Stop if more than · Limit · Run in background · Wait until searchabletook · timedOut · total · updated · created · noops · versionConflicts · batches · failures

Indices

In the dropdownWhat it doesFieldsComes back as
List indicesThe indices with their documents, size and health, and the aliases and data streams. One run for each index.Index or pattern (empty = all of them)indices (index · health · status · documents · sizeBytes · primaries · replicas) · aliases · dataStreams · count
Get indexThe settings, the mappings and the aliases of an index.Index or pattern · Include defaultsindices (index · aliases · mappings · settings · defaults) · count
Get mappingThe fields of an index with their type, e.g. status is keyword. One run for each field.Index or patternindices · fields (name · type) · count · truncated
Create indexCreates an index, with its settings, mappings and aliases if you write them.Index · Settings · Mappings · Aliasesacknowledged · shardsAcknowledged · index
Delete indexDeletes an index with everything in it. It cannot be undone.Index · Allow deleting indicesacknowledged
Index existsTrue or false, without bringing anything else.Index or patternexists
Update mappingAdds fields to the mapping of an index. A field that already exists keeps its type.Index · Fieldsacknowledged
Update settingsChanges the settings of an index, e.g. the refresh interval or the replicas.Index · Settings · Keep existingacknowledged
Refresh indexMakes what was just written searchable now.Index or patterntotal · successful · failed
  • The settings, the mappings and the aliases are JSON that you write, e.g. {"number_of_shards": 1}. Each {{ }} in them is ONE value (a name, a number), never a whole piece of the structure. A {{ }} inside code that the cluster keeps and runs (the script of a runtime field, a script processor, the if of a processor) is refused when you save the node.
  • Create index takes one name, with no wildcards; leave the mappings empty and the cluster guesses them. Update mapping adds fields: one that exists keeps its type, and the cluster refuses a change (the line says a field that already exists cannot change its type: add a new field, or create an index with the new type and reindex into it). Update settings can change how fast the cluster works, and a few settings need the index to be closed.
  • Delete index does nothing until Allow deleting indices is On: the node refuses to run, and nothing is deleted.
  • List indices, Get mapping and the other lists give a list: the next steps run once for each entry of it.

Aliases

In the dropdownWhat it doesFieldsComes back as
List aliasesThe aliases and the index each one points to. One run for each.Index or pattern (empty = all of them)aliases (alias · index · isWriteIndex · hasFilter · routing) · count
Add aliasPoints an alias at an index, with a filter, a routing and a write index if you want.Index · Alias · Filter · Routing · Write indexacknowledged
Remove aliasTakes an alias off an index. The index stays.Index · Aliasacknowledged
Swap aliasMoves an alias from one index to another in one atomic step, so a search never sees it empty.Alias · Old index · New indexacknowledged
  • Swap alias moves the alias in one atomic step, so a search that uses it never sees it empty: use it to switch a flow to a new index (orders-2026 to orders-2027) without a gap. It copies nothing from the old index: the new one gets only the Write index, Filter and Routing you set in the step. If the alias had several indices behind it, set Write index, or the writes through it fail.
  • An alias is one name in lower case. Add alias can carry a filter (only the documents that match show through it), a routing and a write index; those three are advanced.

Data streams and templates

In the dropdownWhat it doesFieldsComes back as
List data streamsThe data streams with their backing indices. One run for each.Data stream or pattern (empty = all of them)dataStreams (name · template · generation · status · timestampField · backingIndices) · count
Create data streamCreates a data stream. An index template with data_stream has to match its name.Data streamacknowledged
Delete data streamDeletes a data stream with all its backing indices. It cannot be undone.Data stream · Allow deleting indicesacknowledged
List index templatesThe composable index templates, or one whole if you name it. One run for each.Template (empty = all of them)templates (name · indexPatterns · composedOf · priority · version · dataStream · definition, when you name one) · count
Put index templateCreates an index template, or replaces the one with the same name. It applies to the indices created from now on.Template · Definition · Only createacknowledged
Delete index templateDeletes an index template. The indices it made stay.Template · Allow deleting indicesacknowledged
  • A data stream needs an index template with data_stream that matches its name: Put index template first, then Create data stream. The template applies to the indices created from then on, not to the ones that exist.
  • A data stream only takes new documents. To write into one with Index document, turn on Only create and give every document an @timestamp; otherwise the node says “That index is a data stream: it only takes new documents. Turn on Only create in Index document.” or “A data stream needs an @timestamp in every document, e.g. {"@timestamp": "2026-11-14T10:00:00Z"}. Add it to the document.”
  • Delete data stream and Delete index template need Allow deleting indices. Deleting a data stream deletes all its backing indices; deleting a template leaves the indices it made.

Ingest pipelines

In the dropdownWhat it doesFieldsComes back as
List pipelinesThe ingest pipelines with their definition. One run for each.Pipeline (empty = all of them)pipelines (name · description · processors · processorTypes · version · definition) · count
Put pipelineCreates an ingest pipeline, or replaces the one with the same name.Pipeline · Description · Processors · On failure · Versionacknowledged
Delete pipelineDeletes an ingest pipeline. The documents that went through it stay as they are.Pipeline · Allow deleting indicesacknowledged
Simulate pipelineRuns test documents through a pipeline without saving anything, to see what it does. One run for each.Pipeline from (saved or processors) · Pipeline · Processors · Documents · Verbosedocuments (document, or error) · count · failed
  • Processors is a JSON list, e.g. [{"set": {"field": "env", "value": "prod"}}], up to 100. Put pipeline replaces a pipeline with the same name. Mustache text such as {{field}} is filled by HostWebhook first: to read a field of the document, use a script processor.
  • Simulate pipeline saves nothing: it runs up to 100 test documents through a saved pipeline or through the processors you write, and says what came out, or the kind of error, for each. With Verbose it also lists what each processor did (its type, its tag and its status), and the document is the one after the last processor. It is the way to try a pipeline before Put pipeline. The test documents can come whole from the event, with the switch of that field.
  • Delete pipeline needs Allow deleting indices; the documents that went through it stay as they are.

Inference

In the dropdownWhat it doesFieldsComes back as
List inference endpointsThe models of the cluster (embeddings, rerank, completion); Elastic's own need machine learning nodes. One run for each.noneendpoints (id · taskType · service · model · needsMachineLearning) · count
Run inferenceRuns an inference endpoint of the cluster: embeddings, rerank or completion. One run for each result. It can cost money.Inference endpoint · Task type · Input · Query (rerank only)taskType · results (embedding, tokens, score and text, or text) · count
  • List inference endpoints shows the models your cluster has. The ones of Elastic itself (the elasticsearch and elser services) run on the machine learning nodes: listed does not mean it can run, and the answer marks them needsMachineLearning.
  • Run inference can cost money, in Elastic or with the provider of the model. The input is a text, or a JSON list of up to 100 texts; each text is one value. Query is for rerank only.

Cluster and tasks

In the dropdownWhat it doesFieldsComes back as
Cluster info and healthThe name and version of the cluster, its health and its nodes. Serverless only has the first part.nonename · clusterName · version · flavor · status · nodes · dataNodes · activePrimaryShards · activeShards · relocatingShards · initializingShards · unassignedShards · pendingTasks
Get taskThe state of a task that runs in the background, e.g. a reindex or a delete by query.Task ID · Wait until donecompleted · action · runningMs · cancellable · cancelled · total · updated · created · deleted · versionConflicts · noops · batches · failures · error
Cancel taskStops a task that runs in the background. What it already did stays done.Task IDcancelled · tasks · nodeFailures
  • Get task and Cancel task take the ID that Run in background gave you in Update by query, Delete by query or Reindex. Wait until done waits up to 20 seconds. What a cancelled task already did stays done, and Get task says cancelled: true once it was stopped.
  • On Serverless the cluster API does not exist: Cluster info and health brings the name and the version, and no health.

API request

In the dropdownWhat it doesFieldsComes back as
API requestAny call to the cluster, with the credential already on: a method, a path, parameters and a body. It never leaves the cluster of the credential.Method · Path · Parameters · Body · Body format · Allow deleting indices · Allow cluster administrationstatus · ok · body

The call that has no operation of its own. How it works, and what it refuses.

Changing many documents

The brake

Update by query, Delete by query and Reindex act on every document that matches, and that can't be undone. So they come with Stop if more than turned on, with a limit of 1,000: the node counts first, and if more documents match, nothing is changed and the run fails, e.g. “Stopped before touching anything: 5,000 documents match, and «Stop if more than» is set to 1,000. Narrow the query, or raise the limit to delete them.” The change itself carries the same limit, so what arrives in between can't go past it. Raise Limit when you mean to change more, or turn the brake off: the field then says in red that it will change every document that matches, however many they are. Max documents is another limit, on how many are changed (empty = all that match, within the brake).

  • On conflict: Abort stops at the first document that changed while the job ran; Proceed skips it and goes on. The answer counts the conflicts.
  • Run in background answers at once with a task to follow, for a job that is too big to wait for.
  • Update by query and Delete by query need a query, and an empty one ({} too) is refused: to act on every document you write it, {"match_all": {}}. So an empty field never changes or deletes everything by accident. Reindex copies every document when you leave the query out.

Bulk

Items is a list as JSON; each item is a create, a replace, an update or a delete. An item can have only these keys: action (index, create, update or delete), id, index, doc, script, scriptParams, createIfMissing, routing, retryOnConflict and upsertDocument; any other is refused by name.

jsonItems
[
  { "action": "index", "id": "{{payload.id}}", "doc": { "status": "paid", "total": "{{payload.total}}" } },
  { "action": "update", "id": "7", "doc": { "status": "shipped" } },
  { "action": "delete", "id": "9" }
]
  • It goes in requests of 5 MB or 5,000 items, up to 50,000 items or 50 MB, and it is not atomic: some items can work and others fail. The answer says which (items, with the position of each).
  • Continue on item errors off (the default): if any item fails, the run fails and says which ones, with the position and the kind of error: “2 of 100 items failed: item 4 (version_conflict_engine_exception), 9 (mapper_parsing_exception). The other items were written: Bulk is not atomic. Turn on Continue on item errors to keep the run going and read which ones failed.” On: the run goes on and the answer says which failed.
  • If a request of the second batch fails, the line says how many were already written: “The first 1 of 3 batches were already written: Bulk is not atomic.” Check before you run it again.

What is tried again, and what never is

  • A read that finds the cluster busy or not answering is tried again by itself.
  • A single write is only tried again when the cluster refused it with a 429, because that one was never written.
  • Bulk, the changes by query and Reindex are never sent twice by a retry: they work in many requests, so repeating the run would write the first ones again (duplicate documents, a script applied twice). They are only repeated if HostWebhook's own credentials service didn't answer, which comes before anything is sent. A failure of a change by query says “Some documents may already have been changed: check before you run it again.”

Scripts

Update document, the changes by query, Reindex and the update items of a Bulk can run a Painless script. A script is code: it is the one you write, and the values of the event never go inside it. Put them in Script parameters and read them as params:

jsonScript · Script parameters
ctx._source.count += params.n

{"n": {{payload.amount}}}

A {{ }} inside a script is refused when you save the node, because after the values are filled in nobody could tell your code from the event's. The script box has no data picker for the same reason.

Seven operations read your documents without changing anything: Search, Count, Multi search, Vector search, Semantic / hybrid search, ES|QL query and SQL query. The index of a search can be a pattern, e.g. logs-*; a pattern that would read every index (*) is refused, so name the indices.

In the dropdownWhat it doesFieldsComes back as
SearchLooks for documents: pick fields and values, or write the query. Sort, fields, highlight, aggregations, and Return all to read every page.Index (or pattern) · Mode · Conditions or Query · Combine with · Sort · Fields · Size · From · Highlight · Aggregations · Collapse on · Min score · Search after · Count every match · Return all · Return all: up to · Routingtook · timedOut · total · totalIsExact · maxScore · returned · hits · aggregations (and pages · truncated · truncatedBecause with Return all)
CountHow many documents match a query.Index (or pattern) · Mode · Conditions or Query · Combine with · Routingcount
Multi searchSeveral searches in one request, up to 100. One run for each answer.Index (for the searches with none) · Searchesresponses (each with status and the answer of a Search, or its error) · count · failed
Vector searchThe nearest neighbours of a vector in a dense_vector field, with a filter. The vector comes from the event, or a model makes it from a text.Index · Vector field · Vector · Model · Text for the model · K · Candidates · Min similarity · Filter · Fieldslike Search
Semantic / hybrid searchLooks for documents by meaning in a semantic_text field, or by meaning plus the words (hybrid, mixed by rank).Index · Mode · Semantic field · Text · Text field · Size · Filter · Fields · Rank window · Rank constantlike Search
ES|QL queryRuns an ES|QL query and brings its rows, one run for each. The values of the event go in Parameters, never in the text.Query · Parameterstook · columns · rows (an object for each, by the name of its columns) · count · partial
SQL queryRuns a SQL query and brings its rows, one run for each. The values of the event go in Parameters, never in the text.Query · Parameters · Fetch sizetook · columns · rows · count · hasMore

Simple: pick a field, an operator and a value

Mode in Simple (the default) shows the builder of Search and Count: a list of conditions, each one a field, an operator and a value, that all have to hold (Combine with And) or any one of them (Or). With no conditions, every document matches. The field is picked from the fields of the index or typed, and a value can be a template. You write no structure: HostWebhook writes the query from this closed list of operators, so a value from the event is always one value and never part of the query.

OperatorWhat it does
isThe field is exactly this value (a term). Not analysed: use it for IDs, codes and keywords.
is notThe same, negated.
contains the wordsFull text: the words of the value are looked for in the field, and the results are ranked by how well they match.
contains the phraseFull text, with the words together and in order.
starts withThe value of the field starts with this text. A prefix, not a pattern.
is greater than · or equal toA number or a date above the value (or equal to it).
is less than · or equal toA number or a date below the value (or equal to it).
is one ofThe field is one of a list of values, one per line, up to 1,000.
exists · is missingThe document has a value in the field, or it has none. They take no value.

Behind the builder, the list is saved as the JSON you would have typed, and Edit as JSON shows it:

jsonConditions
[
  { "field": "status", "operator": "equals", "value": "{{payload.status}}" },
  { "field": "total", "operator": "gt", "value": "100" },
  { "field": "tag", "operator": "in", "value": ["new", "vip"] },
  { "field": "note", "operator": "exists" }
]

Up to 50 conditions: for a bigger query, use the Query DSL. A list that the builder can't show as rows (a whole list that comes from the event, a key it doesn't know) stays as JSON, and it is never turned into rows that would lose it.

Query DSL

Mode in Query DSL takes the query as JSON, e.g. {"match": {"title": "{{payload.q}}"}}. Empty means every document: a search can't hurt. The values of the event go as the value of match, term or range. A {{ }} inside the syntax of a query (query_string, regexp, wildcard, the regular expression of an aggregation or a script) is refused when you save the node: after the fill, nobody could tell your syntax from the event's, and the event would be writing the query.

Sort, fields, highlight and the rest

  • Sort: one per line, e.g. @timestamp:desc, or a JSON list. Empty means the most relevant first. Up to 10 fields; a field is a name, never a script.
  • Fields: only these fields of each document, one per line. Empty means the whole document. Narrower answers are faster and stay under the 5 MB limit.
  • Size (10 by default, up to 10,000) and From (how many to skip). Together they can't pass 10,000: use Return all for more.
  • Highlight: the fields to show the matching words of. Collapse on: one result for each value of a field. Min score: drops the results below it.
  • Aggregations: as JSON, e.g. {"by_status": {"terms": {"field": "status"}}}. They come back in aggregations.
  • Search after: the sort values of the last result of the page before, as a JSON list; it needs a Sort.
  • Count every match: off, the total stops at 10,000 (totalIsExact says whether it is exact); on, it counts every match, which is slower.
  • Every search asks the cluster to stop at 25 seconds: it answers with what it has and timedOut says it didn't finish.

Return all

A search brings one page. Return all reads every page for you, which Elasticsearch's own window of 10,000 results does not allow. HostWebhook opens a point in time (a frozen view of the index, so a document that arrives or changes in the middle can't come twice or be lost), reads pages of 500 following the sort, and closes it when it is done, also when something fails.

  • Return all: up to sets the most documents it brings (10,000 by default, which is also the most the field takes). A run brings at most 10,000 documents, on every plan.
  • When there are more, the answer says so: truncated is true and truncatedBecause says why (the cap, or a hit without a sort, a search that timed out, 40 MB of results). pages says how many were read.
  • It reads documents, so it doesn't take Size, From, Search after or aggregations: the form hides them. Put the order you need in Sort; HostWebhook adds the tiebreaker.
  • For a lot more, narrow the query (a date range, a status) and run it in pieces, or send the documents on with a Bulk.
ℹIf the search says “The search expired before it finished (its point in time was closed). Try again.” the cluster closed the point in time before the last page (it was busy or restarted). Run it again.

Searches is a list of up to 100 searches in one request. Each one can have index, query, size, from, sort and sourceFields, and nothing else (no routing, no scripts, no point in time). The Index of the node is the one of the searches that have none. The answer is one entry for each search, and the next steps run once for each: a search that failed has its status and the kind of error, and the others still answer.

Vector search

Finds the nearest neighbours of a vector in a dense_vector field (kNN). Pick the Vector field, and give either the Vector, a list of numbers from the event, e.g. {{payload.embedding}} (up to 4,096), or a Model of your cluster and the Text for the model, and the cluster makes the vector. Not both.

  • K is how many neighbours come back (10 by default). Candidates is how many to look at in each shard: empty means twice K, and 100 at least, and never fewer than K.
  • Min similarity drops the results less similar than the number. Filter narrows the search before the neighbours are looked for, as a query: {"term": {"lang": "en"}}.
  • The answer is the same as a Search's, with the score of each hit.

Semantic and hybrid search

Semantic looks for documents by meaning in a semantic_text field: give the Semantic field and the Text to look for, e.g. {{payload.question}}. Hybrid mixes the meaning with the words: it also needs the Text field to look for the words in, and the two lists are merged by rank (Rank window, 100 by default, and Rank constant, 60). The Filter goes inside each of the two. Hybrid needs a license of the cluster that includes it, and the cluster says so if it doesn't. Semantic search needs a version of Elasticsearch that has it (not 7.17).

ES|QL and SQL

ES|QL query and SQL query run a query of your own and bring its rows: each one an object by the name of its columns (a repeated name gets _2), with columns and count. The next steps run once for each row. ES|QL needs a version of Elasticsearch that has it (not 7.17).

textQuery · Parameters
FROM orders-2026 | WHERE status == ?status AND total > ?min | LIMIT 100

[{"status": "{{payload.status}}"}, {"min": 100}]
  • The values of the event go in Parameters, never in the text. The text is yours: a {{ }} in it is refused when you save the node (a value written into the query would let the event write the query: FROM * reads every index the key can). In ES|QL a parameter is ?name, or ? in order; in SQL it is ?, in order.
  • The value of a parameter is text, a number, true or false, or null. An object as the value is refused, so a parameter can't choose a field or an index.
  • Fetch size (SQL): how many rows come back, 1,000 by default and up to 10,000. If there were more, the answer says hasMore: the cursor is never returned, so narrow the query.
  • ES|QL says partial when the cluster gave a partial answer.

Deleting and administering: the two switches

Two things the node can do are off until you turn them on, in the advanced options of the operation that needs them: Allow deleting indices and Allow cluster administration. They are switches of the owner of the node: the data of an event never turns one on. A switch is On only with a real true that you set; the text "true", a number or a {{ }} is Off, and the node refuses to be saved with one. The panel shows each one in a red box, with a line that follows its state.

SwitchWhereOff saysOn says
Allow deleting indicesDelete index, Delete data stream, Delete index template, Delete pipelineOff: this node refuses to run and nothing is deleted. Turn it on to delete.On: when this node runs it deletes the index and every document in it (or the data stream and all its backing indices, the index template, the ingest pipeline). It cannot be undone.
Allow deleting indicesAPI requestOff: a call that deletes an index, a data stream, a template or a pipeline is refused.On: the calls of this node can delete indices, data streams, templates and pipelines. It cannot be undone.
Allow cluster administrationAPI requestOff: security, snapshots and the licence are refused, and so is any change to the nodes or the cluster settings. Reading the nodes and the settings is allowed.On: the calls of this node can change the security, the snapshots, the licence and the settings of the whole cluster.
  • The four deletes do nothing without their switch: the node refuses to run them, so a flow that reaches one by mistake deletes nothing. In API request, deleting covers an index, a data stream, a template, a pipeline, an inference endpoint and any other object of the cluster, and a body with remove_index (the _aliases call can delete indices with it). A delete with a wildcard, a list or _all is refused whatever the switch says.
  • Deleting documents needs no switch. In API request, DELETE /orders/_doc/1, a delete by query (even one that matches every document) and a delete inside a _bulk run with both switches Off: the free call has no brake. Only what removes an index, a data stream, a template or a pipeline is held back. Give a flow that has an API request a key that can't delete what it must not.
  • Administering is the security, the snapshots, the licence, the watchers and the shutdown of nodes whatever the method, and changing the nodes, the settings of the cluster and the other management APIs (index lifecycle, machine learning, transforms, cross-cluster replication, enrich, stored scripts and the like). Reading the nodes and the settings is not administration: with the switch Off, GET /_nodes and GET /_cluster/settings work. Give the key of such a flow only what it reads.
  • Turn a switch on only in a node that has to do it, and use a key that has the privilege and nothing else: the switch is the second lock, and the privileges of the key are the first.

API request

For the call that has no operation of its own. It goes only to the cluster of the credential, with the credential already on: it can't change the address, the Host header or the authorization.

  • Method is GET, POST, PUT, DELETE or HEAD. Path is only the path, starting with /, e.g. /_cat/health: no full address, no query string (use Parameters) and no dots, up to 1,024 characters and 12 pieces.
  • A {{ }} in the path is ONE piece. The value of the event is encoded, so it can't add a /, a ?, a .. or an @; a piece that climbs is refused. The method can't come from the event.
  • Parameters and Body are JSON. Body format NDJSON takes a JSON list where each item is one line, for _bulk and _msearch. Up to 20 parameters; the body counts toward the 5 MB.
  • What is code or query syntax takes no {{ }}, and saving the node says so: a text query or source at the root of the body (ES|QL, SQL, EQL, a search template), the id of a stored template, a role query, a wrapper, a script, and the parameters q, df, analyzer, default_operator, analyze_wildcard and lenient. The event brings values into the call, never its shape. Write those yourself.
  • The answer is the cluster's own: status, ok and body. A 404, a 409 or a 400 of your call is an answer you can branch on, not always a failure of the node.
  • It is tried again only on a 503 of HostWebhook's own services, which comes before any call to the cluster: a call that did part of its work could do it twice.
  • Deleting and administering need the two switches; the node checks them again in the client, so a path that gets around the first check does not get around the second.

The trigger

Pick Elasticsearch as the service on a Trigger node, with an Elasticsearch credential. It checks an index on a timer, runs a query alert, or waits for Kibana or Watcher to call. It reads with the credential and writes nothing: it adds no triggers, watches or documents to your cluster. Deactivating or deleting the trigger stops it. The credential needs only read on the index; the push needs no credential at all.

What fires it

  • New documents — a document with a date, or a whole number, above the last one seen. Index is picked from the list (an index, an alias or a data stream); Cursor field is a date or a whole number that grows with each new document, e.g. @timestamp or event.ingested. A document without that field is never seen. Deleted documents are not seen.
  • New or updated documents — a document that is new, or whose change date moved past the last one seen: the date your app sets on every change, e.g. updated_at. A change that does not move it is not seen.
  • Query alert — a query that runs on every check and fires when its count goes above or below a number, e.g. no logs for 10 minutes: pick Below and 1. The query is Query DSL (counts the documents that match, optionally in a window of the last N seconds, up to 7 days, by a date field) or ES|QL (counts the rows it returns, up to 1,000). Repeat Off fires once and waits until the condition stops holding; On fires on every check while it holds.
  • Kibana or Watcher push — Kibana or Watcher calls the URL of the trigger when an alert fires. Nothing is checked on a timer, so it costs no searches. How to set it up.
ℹDeleted documents aren't seen. Elasticsearch doesn't tell a check about a document that is gone. Use a deleted field that your app sets, along with the change date, and watch New or updated documents, or a Kibana alert that calls the push.

Its settings

  • Filter is optional: only the documents that match this Query DSL, as JSON, e.g. {"term": {"status": "paid"}}, up to 20,000 characters. It takes no {{ }} and no scripts: a trigger has no event to fill a marker, so write the value in the query itself. It is checked before it is saved. A document that did not match when it was created, and matches later because it changed, comes out as a new document if its date is ahead of the last one seen: the mark only moves with the documents that match.
  • Delay (60 seconds by default, up to 3,600) reads only documents older than this, so a document that was refreshed late isn't missed; events arrive that much later. The panel warns when the delay is shorter than the refresh interval of the index, and when an index never refreshes by itself.
  • Ignore changes of this flow is On by default: the documents that the Elasticsearch nodes of this flow write don't fire it, so a flow that updates the index it watches doesn't start itself forever. HostWebhook remembers each document as the flow left it and skips only that exact version, so an edit by someone else a moment later does fire. Update by query and Delete by query don't tell which documents they changed, so the trigger may fire on them; the run says so. Turn it off only if the flow never writes in the index it watches. With it Off, a flow that creates documents there starts itself again with every copy it writes, one run for each check, without end. If you turn it On again, what the flow wrote while it was Off still fires once (it has no mark), and then the chain stops.
  • Start with the latest N (0 by default, up to 500): when you turn it on, also send the latest N documents that are already there, oldest first. 0 sends only the new ones.
  • Documents per check is the most one check sends to the flow: 100 by default, up to 500. If more arrived, the next check continues where this one stopped.
  • Check every is in seconds: 300 (5 minutes) by default, as short as 60 on a paid plan (a longer minimum on Free: the field shows yours), up to 86,400 (a day). Each check is a search: on Serverless it counts toward your search usage.
  • Only the documents that arrive after you activate it fire the flow (plus the latest N, if you asked). Each document fires once: HostWebhook does not send it again if a check repeats.

What the trigger sends downstream

{
  "event": "document.created",
  "index": "orders-2026",
  "id": "1042",
  "version": 1,
  "seqNo": 7,
  "primaryTerm": 1,
  "cursor": "2026-11-14T10:00:00.000Z",
  "document": { "status": "new", "total": 59.97, "@timestamp": "2026-11-14T10:00:00Z" }
}

event is document.created for New documents (and for a document at version 1 in New or updated documents) and document.updated for any other version. document is the document as the cluster gave it: use {{payload.document.status}}. cursor is the value of the cursor field of that document, as text (a date in UTC, or a whole number). A query alert sends event: "alert.fired", the index (null for ES|QL), language (dsl or esql), condition, threshold, the count it saw and checkedAt. A push sends event: "alert.received", source (kibana, watcher or other) and the body of the call in alert (a JSON object keeps its keys; anything else comes as { text }, cut at 10,000 characters).

Kibana or Watcher push

Choose Kibana or Watcher push and save it as a push trigger: HostWebhook makes a URL and a secret, and shows them once. HostWebhook does not keep the secret: copy it now, or make a new one. Calls without the secret in the header X-HostWebhook-Secret are refused; the body is read up to 256 KB.

  • Activate the trigger first. The push only comes in while the trigger is on: a call to a trigger that is off answers 410 Gone, and the test of the Kibana connector shows [410] Gone without saying why. Turn it on, and then test.
  • In Kibana (9.x): Stack Management → Alerts and Insights → Connectors → Create connector → Webhook. Method POST, the URL, authentication none, and the headers Content-Type: application/json and X-HostWebhook-Secret: give the secret the Secret header type, because a normal header shows the secret to whoever can see the connector. Test → Body → Run answers 200 with the trigger on, and a run arrives with the variables unfilled ({{rule.id}}…): the test sends the template as it is, and the real values only come from a rule.
  • The rule: Rules → Create rule → Elasticsearch query, in three steps. 1. Definition: KQL or Lucene, a data view for your index, the query, and WHEN count() IS ABOVE n FOR THE LAST N minutes, with its schedule. 2. Actions: Add action → your Webhook connector; Run when Query matched; Action frequency For each alert · On status changes (one push when the alert starts, not one a minute); and the Body. 3. Details: the name.
  • Paste the body, don't type it. The Body of the action is a code editor: when you type, it indents every line a little more and adds a closing brace, and the JSON breaks. Pasted, it stays exact.
  • In Watcher: Stack Management → Alerts and Insights → Watcher → Create → Create advanced watch, and paste the JSON of the panel (a webhook action with method: post, the URL, the two headers and the body). Create threshold alert does not work: its Webhook action has no headers (only Method, Scheme, Host, Port, Path, Username, Password and Body), so it can't send the secret and the push answers 403.
  • The Test push of a push trigger has nothing to show: it waits for Kibana or Watcher. A Kibana variable that a rule type doesn't have comes out empty.

Trying it out

Test push shows the latest documents the trigger would pick up (up to 10), with its filter, as they will arrive, so you can write {{payload.document.status}} in the nodes below it from the start. An alert shows the count it sees now. Nothing is sent to the flow.

Health check and pauses

Once a day the trigger checks that the credential, the index and the cursor field still work. It reads the index and the field, never documents. A failure of the moment (the network, a busy cluster, a timeout, a 5xx, a tunnel that is down) is tried again on the next check, and pauses the trigger only after five in a row. The rest pause it at once, with the cause in a line of HostWebhook's words, never the text of the cluster. A cause of the credential (a rejected key, an expired token, a user and password at Serverless, the certificate or the address, a traffic filter) pauses the other triggers that use it when the daily check runs. A pause that fixes with a new key or token comes with Reconnect, which opens Edit keys and settings: give the new key or token there, then turn the trigger on again; a traffic filter does not have it, because the address of HostWebhook has to be added to the filter in Elastic Cloud.

What happenedWhat the card says
The key is rejected (401)Elasticsearch rejected the credential. Check the API key, or the user and password, and reconnect.
A token that expired (401)The access token expired. Get a new one and reconnect with it.
A user and password at a Serverless project (401)A Serverless project only takes an API key, not a user and password. Create an API key in the project and reconnect with it.
The certificate, the address or the tunnelThe credential can no longer reach the cluster. Check the Endpoint, the certificate and the tunnel, and reconnect.
A traffic filter of Elastic Cloud (403)The traffic filter of the deployment does not let HostWebhook in. Add the address 18.225.52.125 to the filter, e.g. in Network security of Elastic Cloud.
The role can't read the index (403)The credential isn't allowed to read that index. Give its role the read privilege on it, or use another credential.
The index is gone (404)The index isn't there anymore. Pick it again.
Elasticsearch refuses the check (400)Elasticsearch refused the check. Check that the cursor field is still a date or a number, and that the query is valid.
Five checks failed in a rowPaused after 5 failed checks in a row. Fix the cause and turn it on again.
More than 10,000 documents with the same cursorMore than 10,000 documents have the same cursor value. Use a finer field, e.g. event.ingested or a date_nanos.
The cursor jumped far aheadThe cursor jumped far ahead, maybe from a document with a huge number. Use a date as the cursor.
The documents have no cursor to readThe documents don't have a cursor the trigger can read. Check that the field is still a date or a whole number, and pick it again.

Filling in the fields

  • Templates. Any text field takes {{payload.x}} and the values of earlier nodes. In a field that holds JSON, each {{ }} is ONE value: a text, a number or true/false. A value that looks like a list or an object stays text.
  • Take a whole list or object from the event. A field that holds JSON has an advanced switch that lets the event bring it whole (the document, the fields to change, the query, the items of a Bulk). It is off by default. With it on, whoever calls the URL of the flow decides what it holds; the ones that write, change or delete have their line in red. Use it only when the source of the event is yours.
  • A query that comes whole from the event can only compare fields with values and combine them: match_all, match_none, term, terms, range, exists, ids, match, match_phrase, bool, constant_score and nested. Anything else (a script, a pattern, a query language, a lookup in another index) is refused by name, and nothing is sent to the cluster. The same goes for the filter of a vector or semantic search and for each search of a Multi search.
  • The event can't choose the index of the searches of a Multi search that come whole from it: the Index of the node is the one, and a search that brings its own is refused.
  • Lists (the IDs, the fields) are read by what you wrote: each piece with a {{ }} is one item. A value that is two (title,ssn) is refused, so an event can't add fields to the list you chose.

When your cluster says no

A failure says what to do, with no piece of a document or a query. The lines are HostWebhook's, not the cluster's:

What happenedWhat you see
The address is a private networkThe Endpoint is not a public address. Reach a cluster in a private network through a tunnel.
The tunnel is not runningThe tunnel of the credential is not working. Check that the tunnel is running, e.g. hostwh expose-tcp.
Nothing answers at the EndpointCould not connect to the cluster. Check the Endpoint, e.g. https://my-cluster.example.com:9200, and the tunnel if it has one.
The cluster has its own certificateThe cluster uses its own certificate. Paste its CA certificate, or its fingerprint, in the credential.
The fingerprint does not matchThe certificate of the cluster does not match the fingerprint of the credential. If the certificate changed, paste the new fingerprint or the CA.
The Endpoint redirectsThe Endpoint answered with a redirect, which HostWebhook never follows. Use the final address as the Endpoint.
Something else is answeringThe answer does not come from Elasticsearch. Check the Endpoint: a proxy in front of the cluster may be answering.
401: the key or the password is wrongElasticsearch rejected the credential. Check the API key, or the user and password, and reconnect.
401: the token expiredThe access token expired. Get a new one and reconnect with it.
401: a user and password at a Serverless projectA Serverless project only takes an API key, not a user and password. Create an API key in the project and reconnect with it.
403: the role can't do it, and the cluster says which privilegeThe credential is not allowed to do that on «orders-2026». Its role needs one of these privileges on that index: create_index, manage.
403: the role can't do it, and the cluster does not say whichThe credential is not allowed to do that on «orders-2026». Give its role the privilege on that index, e.g. write.
403: a traffic filter of Elastic Cloud turns HostWebhook awayThe traffic filter of the deployment does not let HostWebhook in. Add the address 18.225.52.125 to the filter, e.g. in Network security of Elastic Cloud.
404: the index is not thereElasticsearch did not find «orders-2026». Check the name of the index, e.g. orders-2026.
409: a version conflictThe document changed or already exists (version conflict). Try again, or turn off Only if unchanged or Only create.
A field does not fit the mappingA field does not fit the mapping of the index, e.g. text in a number field. Check the document.
Update mapping tries to change the type of a field that existsA field that already exists cannot change its type. Add a new field, or create a new index with the new type and reindex into it.
A change that did not answer in time (Create index, Swap alias, Create data stream…)Elasticsearch did not answer in time, and the change may have been made. Look first, with a List or Get operation, before you run it again.
A data stream asked for a document with an ID, or without Only createThat index is a data stream: it only takes new documents. Turn on Only create in Index document.
A document for a data stream has no @timestampA data stream needs an @timestamp in every document, e.g. {"@timestamp": "2026-11-14T10:00:00Z"}. Add it to the document.
A vector with the wrong number of dimensionsThe vector does not have as many numbers as the field has dimensions. Check both, e.g. 4 numbers for a field of 4 dimensions.
A semantic search on a field that is not semantic_textThat field is not a semantic_text field. Pick one that is, or use Search or Vector search.
An ES|QL or SQL query that does not verifyElasticsearch could not run that query. Check the names of the indices and fields in it.
A query or a body that can't be readElasticsearch could not read the request. Check the JSON and the names of the fields.
A script failsThe script failed. Check its source and its parameters.
429: the cluster is busyThe cluster is busy. Try again in a moment.
The index is read-onlyThe index is read-only or blocked. Check its settings in the cluster.
The answer is over 5 MBThe answer is too large (5 MB at most). Ask for fewer documents or fewer fields, e.g. Fields.
The cluster takes too longElasticsearch did not answer in time. Try again, or narrow the request.
The point in time of Return all was closedThe search expired before it finished (its point in time was closed). Try again.
The brake of a change by queryStopped before touching anything: 5,000 documents match, and «Stop if more than» is set to 1,000. Narrow the query, or raise the limit to delete them.

Lines with a name of an index use the one of the call, never the one the cluster answered with. A failure that says Reconnect means the credential is what is wrong.

Limits

WhatThe limit
A call to the cluster30 seconds, and 10 to connect. A search also asks the cluster to stop at 25 seconds and answers with what it has, saying timedOut.
The answer of the cluster5 MB, counted while reading. A page of Return all that is bigger is split and asked again.
What you sendJSON of 5 MB at most and 64 levels deep. A script, 16,000 characters.
Get many documents1,000 IDs.
FieldsUp to 100 names in Fields.
BulkRequests of 5 MB or 5,000 items, up to 50,000 items or 50 MB in all.
SearchSize and From together can't pass 10,000. Up to 50 conditions in the builder, 1,000 values in «is one of», 10 sort fields and 20 highlight fields.
Return allPages of 500. The field goes up to 10,000, and a run brings at most 10,000 documents on every plan.
Multi searchUp to 100 searches.
Vector searchUp to 4,096 numbers in the vector. K and the candidates, up to 10,000.
ES|QL and SQL16,000 characters of text, up to 1,000 parameters. SQL brings 1,000 rows unless you change Fetch size (up to 10,000).
Changes by queryThe brake stops at 1,000 matches unless you change its limit. A failure reports up to 100 of its failures.
Get mappingUp to 5,000 fields are listed; the answer says truncated if there are more.
Ingest pipelinesUp to 100 processors in one pipeline, and up to 100 test documents in Simulate pipeline.
Run inferenceUp to 100 texts at once, 8,192 characters each.
API requestA path of 1,024 characters and 12 pieces, up to 20 parameters. The answer is cut at 5 MB like every other.
The triggerUp to 500 documents in one check, 20,000 characters for the filter, a window of up to 7 days, an alert count of up to 1,000 rows in ES|QL, and a check every 60 seconds at the shortest.
The connectionUp to 10 extra headers. A pool of connections of its own for each credential, closed after 60 seconds without use.

Gotchas

  • A document you just wrote may not show up in a search yet. Elasticsearch makes changes searchable about a second later. Turn on Wait until searchable on the write, or search a moment later.
  • A change that says «did not answer in time» may have been made. On a cluster that is slow to save its state, Create index, Swap alias or Create data stream can answer late and still be done. The line of the node says it too (“and the change may have been made”). Look (Index exists, List aliases, List data streams) before you run it again: a repeat fails with already exists.
  • The total of a search stops at 10,000 unless you turn on Count every match. Use Count when you only want the number.
  • Return all brings what existed when it started. The point in time freezes the view, so a document that arrives in the middle is not in the result, and none comes twice.
  • An ID from the event is one ID. In Get many documents each piece of a list is one ID, and a value with a comma or a line break is refused instead of being split in two.
  • A pattern reads many indices, a name one. The operations that read can use logs-*; the ones that write take one name.
  • The key decides. A 403 is not a failure of the node: the role of the key lacks the privilege on that index. Give it the privilege, or use another key. If the line talks about a traffic filter instead, the privilege is not the problem: the deployment does not let the address of HostWebhook in.
  • A switch that is Off is not a failure. A delete that says it refuses to run is the node doing what you asked it to: turn Allow deleting indices on in that node if it has to delete.
  • Serverless has no cluster API and charges the queries as compute: prefer narrow queries and Fields.

What isn't here yet

  • Lists of what exists in the dropdown for the names of pipelines, templates, aliases and data streams: today you type them, or run the List operation first.
  • Hiding what the cluster doesn't have: the node does not hide ES|QL or semantic search on a 7.17 cluster. The Test says which version it is, and the operation says so if the cluster refuses it.
  • OpenSearch: it will have its own node.
  • Ignoring the certificate of a cluster: never. Paste its CA or its fingerprint.

Elasticsearch is a trademark of elasticsearch B.V., registered in the U.S. and in other countries. Elastic is a trademark of elasticsearch B.V.