Skip to content
Back to skills

Elasticsearch Knowledge Patch

ASecurity

Elasticsearch

  • 25 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added September 5, 2026
ai-agentsgojavasqlnodeexpressawsapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill elasticsearch-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Elasticsearch Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Elasticsearch Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-elasticsearch-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-elasticsearch-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: elasticsearch-knowledge-patch
description: Elasticsearch
version: "9.5.7"
license: MIT
metadata:
  author: Nevaberry
---



# Elasticsearch Knowledge Patch

Load this skill when upgrading Elasticsearch, changing mappings or ingestion,
building ES|QL queries, or configuring search, inference, security, and snapshots.
The references contain detailed behavior, examples, limitations, and workarounds.

## Reference index

| Reference | Topics |
| --- | --- |
| [Compatibility and known issues](references/compatibility-and-known-issues.md) | Startup, plugins, runtimes, deprecations, consistency bugs, version-specific workarounds |
| [Data streams, lifecycle, and ingest](references/data-streams-lifecycle-and-ingest.md) | Failure stores, rollover, downsampling, ILM, reindexing, processors, transforms, connectors |
| [ES\|QL and querying](references/esql-and-querying.md) | Joins, views, full-text predicates, branches, time-series queries, external data, partial results, distributed queries |
| [Mappings, time series, and observability](references/mappings-time-series-and-observability.md) | Synthetic source, columnar modes, skippers, OTLP, histograms, PromQL, query logging |
| [Search, vectors, and inference](references/search-vectors-and-inference.md) | Semantic fields, vector indexing, rerankers, inference endpoints, model validation, search limits, synonyms |
| [Security, cluster, and storage](references/security-cluster-and-storage.md) | Credentials, privileges, TLS, allocation, S3, snapshots, archive compatibility |

## Breaking changes and changed defaults

### Result completeness and cancellation

ES|QL returns partial results by default in 8.19.0 and 9.1.0. Check `is_partial`
before treating a response as complete. Require complete results with
`?allow_partial_results=false` or the cluster setting
`esql.query.allow_partial_results: false`.
In 9.4.10 and 9.5.7, cancellation fails the query even with partial results enabled.
EQL defaults `allow_partial_search_results` to `true` in 9.0.0; set it to `false`
to fail on partial searches.

### Time-series writes and lifecycle actions

New time-series indices in 9.4.0 use synthetic `_id` values and disable sequence
numbers. If writes require optimistic concurrency control, set
`index.disable_sequence_numbers: false` in the time-series index template.
With sequence numbers disabled, index, update, and delete requests using
`if_seq_no` fail; searches with `seq_no_primary_term=true` return sentinel values.

In 9.5.0, `index.look_ahead_time` defaults to `9m` instead of `30m`.
Time-series data streams reject timestamps more than nine minutes in the future
under that default. For future-dated producers, set `index.look_ahead_time: 30m`
or another suitable value in the composable or component template.

In 9.4.0, ILM's `downsample` action stops force-merging by default.
Set `"force_merge_index": true` or add a separate force-merge action in the same
or a later phase. In 9.4.5 and 9.5.1, an ILM `allocate` action specifying
`number_of_replicas` removes `index.auto_expand_replicas`; omit
`number_of_replicas` if automatic replica expansion should remain.

### Vector storage and inference requests

Starting in 9.2.0, new indices enable `exclude_source_vectors` by default, so
stored `_source` omits vector values. Reindex carries vector values even when
stored `_source` omits them.
From 9.3.0, creating a `bbq_disk` index requires an Enterprise license;
indices created on 9.2 without that license remain updateable and queryable.

In 9.4.0, chat completions with reasoning no longer accept `max_tokens`, base64
embedding inputs must use data URIs, and inference timeouts return HTTP 504.
In 9.3.8 and 9.4.4, the Inference API rejects overrides of `secret_parameters`.

### JVM, discovery, and snapshot clients

The launcher ignores `_JAVA_OPTIONS`; configure overrides in `jvm.options.d/`
or through `ES_JAVA_OPTS`. The default container image uses UBI Minimal;
update derived images that install or rely on base-image packages.

Test production S3 repository settings before the SDK v1-to-v2 migration.
During the 9.1.0 SDK upgrade, `discovery-ec2` and `repository-s3` require IMDSv2
when using instance metadata and stop honoring
`com.amazonaws.sdk.ec2MetadataServiceEndpointOverride`.
Put the scheme in `discovery.ec2.endpoint` and `s3.client.<name>.endpoint`.
The storage reference preserves the credential, signing, and ignored-setting details.

## Deprecations and removed configuration

- ES|QL removes bracketed `METADATA` lists in 9.0.0. Use a comma-separated list:
  `FROM my-index METADATA _id, _index`.
- In 9.0.0, remove `force_source` from highlight requests, `tracing.apm.*` from
  configuration, `ecs` from `user_agent` processors, and `fallback` from GeoIP processors.
- The `elser` inference service identifier, machine-learning job flush API, and
  Behavioral Analytics collection APIs are deprecated in 9.0.0.
- ILM `rollover` using `max_size` emits a deprecation warning starting in 9.3.0.
- The generic `logs` stream type and `aggregate_metric_double` parameter
  `default_metric` are deprecated in 9.4.0.
- ES|QL query logging emits a deprecation warning in 9.4.2.
- Legacy monitoring REST APIs are deprecated in 9.5.3.
- Monitoring plugin collection and shipping are deprecated in 9.5.0. Move both
  off the plugin before 10.0, when that functionality is removed.
- Logger updates that implicitly configure child loggers are deprecated in 9.5.0.
  Configure affected child loggers explicitly before 10.0 removes that behavior.

## Known issues affecting correctness

Bulk writes in 9.5.0–9.5.2 can leave replicas divergent if the primary crosses
its indexing-pressure limit while processing a bulk request. Unacknowledged writes
can appear intermittently in searches, and blocked translog trimming can increase
disk use and prolong recovery. Upgrade to 9.5.3 or later.

In 9.5.0, Boolean queries using bulk scoring on `index: false` fields can return
false positives when combining `must_not` with `must`, `filter`, or `should`.
The `term` and `range` paths are fixed in 9.5.1; multi-value `terms` is fixed in 9.5.2.

Starting in 8.16.0, exactly two `keyword` grouping fields can produce incorrect
ES|QL results when the first has more than 65k distinct values. Fixes are in
8.17.9, 8.18.7, and 9.0.4. On affected versions, put the lower-cardinality field
first or filter rows before `STATS` to reduce the first field's cardinality.

The compatibility reference includes exact JVM workarounds for GCS credentials,
Active Directory, shrink merges, and direct I/O, with their affected versions.

## Failure stores, ingestion, and reindexing

A data stream can retain documents rejected by ingest pipelines or mapping
conflicts in a separate failure store. Enable it in an index template for new
streams or through the data stream options endpoint for an existing stream.
Query it with `::failures`, including `FROM logs-test-*::failures` in ES|QL.

In 9.2.0, failure stores default to enabled for newly created `logs-*-*`,
OpenTelemetry, and APM data streams. A document written to the failure store
returns HTTP `201 Created` with `"failure_store": "used"`.
Failure-store retention is independent of regular backing-index retention.
Use `recover_failure_document` to recover an original document for remediation.
In 9.3.5 and 9.4.1, indexing backpressure exceptions bypass the failure store;
producers must handle the write rejection directly.

Asynchronous reindexing in 9.5.0 survives graceful shutdown of its node and normally
paginates with a point in time. In 9.5.3, a task fails if its shutting-down node
cannot relocate it. Check the task outcome before assuming it resumes elsewhere.

## ES|QL query construction

`LOOKUP JOIN` begins in technical preview and enriches pipeline rows from a lookup
index. In 9.1.0, put remote `ENRICH` before the join; 9.2.0 allows it afterward.
Multiple join keys and cross-cluster input are supported in 9.2.0;
comparison expressions in `ON` are in technical preview.
In 9.4.0, ES|QL warns about `SORT` before a join; put `SORT` after the join to
order the joined output.

Use `KEEP ??field` for an identifier parameter and `LIMIT ?limit` for a row limit.
In 9.4.0, use an explicit `LIMIT` in a `FORK` or subquery branch to cap its output;
branches no longer receive individual implicit row limits.
Put full-text predicates before `MV_EXPAND`.
In 9.5.5, a full-text function after a union of subqueries is rejected if a branch
has a top-N operation such as `SORT` followed by `LIMIT`.

Views expose saved pipeline columns as virtual indices. A `FROM` can mix views,
indices, and wildcards. Querying views is unavailable with document-level or
field-level security. Cross-cluster ES|QL queries require an Enterprise license.

## Time-series queries and metrics

Pass a time-series aggregation window as its second argument. In 9.3.0, it must
be a multiple of the grouping bucket; omitting it uses the bucket width.
In 9.4.0, valid windows can be shorter than the bucket or not exact multiples:
`TS metrics | STATS AVG(RATE(requests, 15m)) BY TBUCKET(10m), host`.

In a `TS` query, `GROUP BY ALL` groups by time-series dimensions and returns them
as columns; `MV_EXPAND` is disallowed before `STATS`.
In 9.5.7, put the first `STATS` ahead of `FORK` in a `TS` pipeline.
In 9.4.10 and 9.5.7, implicit `@timestamp` is excluded from `STATS` grouping keys;
specify timestamp grouping explicitly when needed.

`TS metrics | METRICS_INFO` returns one row per metric;
`TS metrics | TS_INFO` returns one row per metric and series.
Prometheus REST endpoints are in technical preview, and the plugin is enabled by
default. Use remote write 1.0 payloads with `POST /_prometheus/api/v1/write`;
9.4.8 and 9.5.5 reject remote write 2.0 requests.

## Semantic fields, vectors, and inference

`semantic_text` is generally available, integrates inference into field mappings,
accepts `match` queries, and supports semantic highlighting. Use `sparse_vector`
or `knn` with sparse or dense embeddings, respectively.
In 9.4.10 and 9.5.7, mapping updates that omit `inference_id` retain the current endpoint.

In 9.4.0, new dense vector indexes default to `bbq_disk`; new dense
`semantic_text` fields inherit this default and use `bfloat16`.
DiskBBQ supports configurable 1-, 2-, 4-, and 7-bit quantization.
Use `num_candidates` or `visit_percentage` to tune kNN search breadth.
Quantized kNN can collect extra candidates and rescore original vectors with
`"rescore_vector": {"oversample": 2.0}`. Use `"oversample": 0` inside
`rescore_vector` to bypass oversampling and rescoring.

The experimental `rank_vectors` field stores multiple dense vectors per document
for second-stage reranking with late-interaction models such as ColBERT and ColPali.
The MMR retriever balances relevance and diversity and can reduce near-duplicates;
ES|QL also provides an `MMR` command.

Set `"chunking_settings": {"strategy": "none"}` to keep inference inputs intact.
For `text_embedding`, put `input_type` at the request body's root.
In 9.2.0, embedding requests reject `query`; supply text as `input`.
Update endpoints with `PUT /_inference/<task_type>/<inference_id>/_update`.

## Security and snapshot operations

API key credential hashing supports salted SHA-256 through
`xpack.security.authc.api_key.hashing.algorithm: ssha256`.
In 9.4.7 and 9.5.4, grants using `manage_roles` reject
`allow_restricted_indices: true`; omit the field or set it to `false`.
In 9.4.9 and 9.5.6, node enrollment requires the HTTP leaf certificate to chain
to the pinned CA and remain within its validity period.

Restoring system features requires a complete snapshot of the relevant system
data streams; a partial snapshot cannot restore those features.
In 9.4.10 and 9.5.7, restoring an index backed by a searchable snapshot must
preserve the searchable snapshot's identity.
In 9.5.6, `s3.client.default.legacy_content_md5: true` enables legacy `Content-MD5`
checksums; replace `default` with a named client's name when applicable.
The per-client option to omit S3 request body checksums in 9.5.7 takes precedence
over `AWS_REQUEST_CHECKSUM_CALCULATION` and `aws.requestChecksumCalculation`.

Files in this skill

  • SKILL.md9.6 KB
  • coverage.json1.3 KB
  • references/compatibility-and-known-issues.md9.6 KB
  • references/data-streams-lifecycle-and-ingest.md5.6 KB
  • references/esql-and-querying.md7.8 KB
  • references/mappings-time-series-and-observability.md5.1 KB
  • references/search-vectors-and-inference.md8 KB
  • references/security-cluster-and-storage.md6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.