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.
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 clearhttp://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_keypair. 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:AuthorizationandHostare written by HostWebhook and can't be set here. The values are secrets: they come back to the panel only inEdit 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.
| Choice | When |
|---|---|
| The usual public certificates | The default. Nothing to paste. Elastic Cloud, Serverless and any cluster with a certificate from a public authority. |
| Paste its CA certificate | A cluster with its own certificate. The text of http_ca.crt, starting with -----BEGIN CERTIFICATE-----. |
| Use its SHA-256 fingerprint | The 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:
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
readon 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 needreadandwriteon the index, and Reindexreadon the source andwriteon the destination (andcreate_indexthere 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_indexormanageon the index, andmanage_index_templates,manage_ingest_pipelinesormonitoron 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
superuserrole. - 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 call | The privilege | Given on |
|---|---|---|
| List indices · Get index · Get mapping · List aliases | view_index_metadata (or read) | the index |
| Create index · Create data stream | create_index (or manage) | the index or the data stream |
| Update mapping | write (or manage): write is enough | the index |
| Update settings | manage | the index |
| Refresh index | maintenance (or manage) | the index |
| Add alias · Remove alias · Swap alias | manage | the index and the alias |
| Delete index · Delete data stream | delete_index (or manage) | the index or the data stream |
| List index templates | monitor, or manage_index_templates | the cluster |
| Put index template · Delete index template | manage_index_templates | the cluster |
| List pipelines · Simulate pipeline | read_pipeline, or manage_ingest_pipelines: monitor is not enough | the cluster |
| Put pipeline · Delete pipeline | manage_ingest_pipelines | the cluster |
| List inference endpoints | monitor | the cluster |
| Cluster info and health · Get task | monitor | the cluster |
| Cancel task | manage | the 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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| Index document | Creates 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 searchable | index · id · result · version · seqNo · primaryTerm |
| Get document | One document by its ID. It says if it was found, and brings its version for Only if unchanged. | Index · Document ID · Fields · Routing | id · index · found · version · seqNo · primaryTerm · source |
| Get many documents | Several documents by their IDs, up to 1,000. One run for each. | Index · IDs (one per line) · Fields | documents (each like Get document) · count · found |
| Document exists | True or false, without bringing the document. | Index · Document ID · Routing | exists |
| Update document | Changes 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 · Routing | index · id · result · version · seqNo · primaryTerm |
| Delete document | Deletes a document by its ID. | Index · Document ID · Only if unchanged · Routing · Wait until searchable | index · id · result · version · seqNo · primaryTerm |
| Bulk | Many 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 searchable | took · 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
seqNoandprimaryTermthat 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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| Update by query | Changes 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 searchable | took · timedOut · total · updated · noops · versionConflicts · batches · failures (or task, when it runs in the background) |
| Delete by query | Deletes the documents that match a query. | Index · Query · On conflict · Max documents · Stop if more than · Limit · Run in background · Wait until searchable | took · timedOut · total · deleted · noops · versionConflicts · batches · failures |
| Reindex | Copies 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 searchable | took · timedOut · total · updated · created · noops · versionConflicts · batches · failures |
Indices
| In the dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| List indices | The 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 index | The settings, the mappings and the aliases of an index. | Index or pattern · Include defaults | indices (index · aliases · mappings · settings · defaults) · count |
| Get mapping | The fields of an index with their type, e.g. status is keyword. One run for each field. | Index or pattern | indices · fields (name · type) · count · truncated |
| Create index | Creates an index, with its settings, mappings and aliases if you write them. | Index · Settings · Mappings · Aliases | acknowledged · shardsAcknowledged · index |
| Delete index | Deletes an index with everything in it. It cannot be undone. | Index · Allow deleting indices | acknowledged |
| Index exists | True or false, without bringing anything else. | Index or pattern | exists |
| Update mapping | Adds fields to the mapping of an index. A field that already exists keeps its type. | Index · Fields | acknowledged |
| Update settings | Changes the settings of an index, e.g. the refresh interval or the replicas. | Index · Settings · Keep existing | acknowledged |
| Refresh index | Makes what was just written searchable now. | Index or pattern | total · 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, theifof 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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| List aliases | The 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 alias | Points an alias at an index, with a filter, a routing and a write index if you want. | Index · Alias · Filter · Routing · Write index | acknowledged |
| Remove alias | Takes an alias off an index. The index stays. | Index · Alias | acknowledged |
| Swap alias | Moves an alias from one index to another in one atomic step, so a search never sees it empty. | Alias · Old index · New index | acknowledged |
- 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-2026toorders-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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| List data streams | The 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 stream | Creates a data stream. An index template with data_stream has to match its name. | Data stream | acknowledged |
| Delete data stream | Deletes a data stream with all its backing indices. It cannot be undone. | Data stream · Allow deleting indices | acknowledged |
| List index templates | The 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 template | Creates an index template, or replaces the one with the same name. It applies to the indices created from now on. | Template · Definition · Only create | acknowledged |
| Delete index template | Deletes an index template. The indices it made stay. | Template · Allow deleting indices | acknowledged |
- A data stream needs an index template with
data_streamthat 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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| List pipelines | The ingest pipelines with their definition. One run for each. | Pipeline (empty = all of them) | pipelines (name · description · processors · processorTypes · version · definition) · count |
| Put pipeline | Creates an ingest pipeline, or replaces the one with the same name. | Pipeline · Description · Processors · On failure · Version | acknowledged |
| Delete pipeline | Deletes an ingest pipeline. The documents that went through it stay as they are. | Pipeline · Allow deleting indices | acknowledged |
| Simulate pipeline | Runs 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 · Verbose | documents (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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| List inference endpoints | The models of the cluster (embeddings, rerank, completion); Elastic's own need machine learning nodes. One run for each. | none | endpoints (id · taskType · service · model · needsMachineLearning) · count |
| Run inference | Runs 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
elasticsearchandelserservices) run on the machine learning nodes: listed does not mean it can run, and the answer marks themneedsMachineLearning. - 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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| Cluster info and health | The name and version of the cluster, its health and its nodes. Serverless only has the first part. | none | name · clusterName · version · flavor · status · nodes · dataNodes · activePrimaryShards · activeShards · relocatingShards · initializingShards · unassignedShards · pendingTasks |
| Get task | The state of a task that runs in the background, e.g. a reindex or a delete by query. | Task ID · Wait until done | completed · action · runningMs · cancellable · cancelled · total · updated · created · deleted · versionConflicts · noops · batches · failures · error |
| Cancel task | Stops a task that runs in the background. What it already did stays done. | Task ID | cancelled · 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: trueonce 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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| API request | Any 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 administration | status · 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
taskto 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.
[
{ "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:
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.
Search
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 dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| Search | Looks 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 · Routing | took · timedOut · total · totalIsExact · maxScore · returned · hits · aggregations (and pages · truncated · truncatedBecause with Return all) |
| Count | How many documents match a query. | Index (or pattern) · Mode · Conditions or Query · Combine with · Routing | count |
| Multi search | Several searches in one request, up to 100. One run for each answer. | Index (for the searches with none) · Searches | responses (each with status and the answer of a Search, or its error) · count · failed |
| Vector search | The 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 · Fields | like Search |
| Semantic / hybrid search | Looks 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 constant | like Search |
| ES|QL query | Runs 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 · Parameters | took · columns · rows (an object for each, by the name of its columns) · count · partial |
| SQL query | Runs 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 size | took · 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.
| Operator | What it does |
|---|---|
| is | The field is exactly this value (a term). Not analysed: use it for IDs, codes and keywords. |
| is not | The same, negated. |
| contains the words | Full text: the words of the value are looked for in the field, and the results are ranked by how well they match. |
| contains the phrase | Full text, with the words together and in order. |
| starts with | The value of the field starts with this text. A prefix, not a pattern. |
| is greater than · or equal to | A number or a date above the value (or equal to it). |
| is less than · or equal to | A number or a date below the value (or equal to it). |
| is one of | The field is one of a list of values, one per line, up to 1,000. |
| exists · is missing | The 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:
[
{ "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 inaggregations. - 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 (
totalIsExactsays 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
timedOutsays 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:
truncatedistrueandtruncatedBecausesays why (the cap, or a hit without a sort, a search that timed out, 40 MB of results).pagessays 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.
Multi search
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).
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
partialwhen 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.
| Switch | Where | Off says | On says |
|---|---|---|---|
| Allow deleting indices | Delete index, Delete data stream, Delete index template, Delete pipeline | Off: 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 indices | API request | Off: 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 administration | API request | Off: 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_aliasescall can delete indices with it). A delete with a wildcard, a list or_allis 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_bulkrun 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 /_nodesandGET /_cluster/settingswork. 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
_bulkand_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 textqueryorsourceat the root of the body (ES|QL, SQL, EQL, a search template), the id of a stored template, a role query, awrapper, a script, and the parametersq,df,analyzer,default_operator,analyze_wildcardandlenient. The event brings values into the call, never its shape. Write those yourself. - The answer is the cluster's own:
status,okandbody. 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.
@timestamporevent.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 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 headersContent-Type: application/jsonandX-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
webhookaction withmethod: 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 happened | What 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 tunnel | The 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 row | Paused after 5 failed checks in a row. Fix the cause and turn it on again. |
| More than 10,000 documents with the same cursor | More 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 ahead | The cursor jumped far ahead, maybe from a document with a huge number. Use a date as the cursor. |
| The documents have no cursor to read | The 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_scoreandnested. 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 happened | What you see |
|---|---|
| The address is a private network | The Endpoint is not a public address. Reach a cluster in a private network through a tunnel. |
| The tunnel is not running | The tunnel of the credential is not working. Check that the tunnel is running, e.g. hostwh expose-tcp. |
| Nothing answers at the Endpoint | Could 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 certificate | The cluster uses its own certificate. Paste its CA certificate, or its fingerprint, in the credential. |
| The fingerprint does not match | The 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 redirects | The Endpoint answered with a redirect, which HostWebhook never follows. Use the final address as the Endpoint. |
| Something else is answering | The 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 wrong | Elasticsearch rejected the credential. Check the API key, or the user and password, and reconnect. |
| 401: the token expired | The access token expired. Get a new one and reconnect with it. |
| 401: a user and password at a Serverless project | A 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 privilege | The 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 which | The 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 away | 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. |
| 404: the index is not there | Elasticsearch did not find «orders-2026». Check the name of the index, e.g. orders-2026. |
| 409: a version conflict | The document changed or already exists (version conflict). Try again, or turn off Only if unchanged or Only create. |
| A field does not fit the mapping | A 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 exists | A 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 create | That 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 @timestamp | A 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 dimensions | The 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_text | That 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 verify | Elasticsearch could not run that query. Check the names of the indices and fields in it. |
| A query or a body that can't be read | Elasticsearch could not read the request. Check the JSON and the names of the fields. |
| A script fails | The script failed. Check its source and its parameters. |
| 429: the cluster is busy | The cluster is busy. Try again in a moment. |
| The index is read-only | The index is read-only or blocked. Check its settings in the cluster. |
| The answer is over 5 MB | The answer is too large (5 MB at most). Ask for fewer documents or fewer fields, e.g. Fields. |
| The cluster takes too long | Elasticsearch did not answer in time. Try again, or narrow the request. |
| The point in time of Return all was closed | The search expired before it finished (its point in time was closed). Try again. |
| The brake of a change by query | 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. |
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
| What | The limit |
|---|---|
| A call to the cluster | 30 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 cluster | 5 MB, counted while reading. A page of Return all that is bigger is split and asked again. |
| What you send | JSON of 5 MB at most and 64 levels deep. A script, 16,000 characters. |
| Get many documents | 1,000 IDs. |
| Fields | Up to 100 names in Fields. |
| Bulk | Requests of 5 MB or 5,000 items, up to 50,000 items or 50 MB in all. |
| Search | Size 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 all | Pages of 500. The field goes up to 10,000, and a run brings at most 10,000 documents on every plan. |
| Multi search | Up to 100 searches. |
| Vector search | Up to 4,096 numbers in the vector. K and the candidates, up to 10,000. |
| ES|QL and SQL | 16,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 query | The brake stops at 1,000 matches unless you change its limit. A failure reports up to 100 of its failures. |
| Get mapping | Up to 5,000 fields are listed; the answer says truncated if there are more. |
| Ingest pipelines | Up to 100 processors in one pipeline, and up to 100 test documents in Simulate pipeline. |
| Run inference | Up to 100 texts at once, 8,192 characters each. |
| API request | A path of 1,024 characters and 12 pieces, up to 20 parameters. The answer is cut at 5 MB like every other. |
| The trigger | Up 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 connection | Up 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.