Repository navigation
Description
Context
Since build 53671 (2026-11-20), the daily "Check integrations local stacks - Stack Version v9.7" job fails vectra_rux system tests for audit, detection_event and entity_event, all on the generic (elastic-agent logs - common) check. Ingest itself works: each stream reaches the expected 5 hits.
Earlier nights failed on the audit pipeline test (Painless setValue), which hid the system tests. That pipeline test now passes on 9.7, so tonight is the first time the system tests ran on this stack.
Tracked in the 9.7 umbrella issue #22189.
Evidence
From the system test JUnit result of build 53671 (artifact build/test-results/vectra_rux-system-1795147213172027019.xml: https://buildkite.com/organizations/elastic/pipelines/integrations/builds/53671/jobs/01a1f70c-6950-4186-a35c-8746101f7734/artifacts/01a1f71d-0000-4a85-8c09-a89c392574cf), the agent log lines that fail the check are:
Component state changed cel-default (HEALTHY->DEGRADED): Recoverable: vectra_rux.audit: single event error object returned by evaluation: {"error":{"code":"404","id":"404 Not Found","message":"GET http://svc-vectra_rux:8090/api/v3.4/events/audits: 404 Not Found (404)"}}
The same happens for /api/v3.4/events/detections and /api/v3.4/events/entity_scoring.
Cause
In packages/vectra_rux/_dev/deploy/docker/files/config.yml, each events endpoint has three pages. The last one returns "next_checkpoint": 6, "remaining_count": 0. The CEL program keeps from = next_checkpoint, so the next interval (interval: 10s in the system test config) requests from=6. The mock has no route for that, so it answers 404. The program turns this into an error event, and the input reports DEGRADED.
The package is unchanged since before the failure started. The same package passed the same night on 8.18.0 (53672) and 8.19 (53665) with very similar test timing; we haven't confirmed why only 9.7 reports the DEGRADED state within the check window.
This is a race: the test fails only if the agent makes the follow-up poll before the test tears it down. In a local run, the agent had already polled before the first hit check, so the 404 error event was indexed as a 6th document (assert hit count expected 5, observed 6).
Reproduce
Reproduced locally on 9.7.0-SNAPSHOT, using the same snapshot builds as the failing CI run (ES 1381b62024, agent e59137814a, Kibana c9f4dc2035) and elastic-package v0.128.0:
cd packages/vectra_rux
elastic-package stack up -d --version 9.7.0-SNAPSHOT
elastic-package test system -v --data-streams audit,detection_event,entity_event
With the package unchanged, audit fails with the same HEALTHY->DEGRADED ... 404 lines. detection_event and entity_event passed in that run, consistent with the race. To make the follow-up poll happen every time, set interval: 1s in each data_stream/<ds>/_dev/test/system/test-common-config.yml (local only).
Verified fix
Add a mock route per events endpoint for the poll after the last page (from: 6), returning an empty page:
- path: /api/v3.4/events/audits # same for /events/detections and /events/entity_scoring
methods: ['GET']
query_params:
limit: 2
from: 6
event_timestamp_gte: "{event_timestamp_gte:.*}"
request_headers:
Authorization:
- 'Bearer xxxx'
responses:
- status_code: 200
body: |
{{ minify_json `
{
"events": [],
"next_checkpoint": 6,
"remaining_count": 0
}
`}}Local results on 9.7.0-SNAPSHOT:
| Mock | Interval | audit | detection_event | entity_event |
|---|---|---|---|---|
| unchanged | 10s (as in CI) | FAIL (404 → DEGRADED) | PASS | PASS |
| with fix | 1s (forces follow-up polls) | PASS, 5 hits | PASS, 5 hits | PASS, 5 hits |
| unchanged | 1s (control) | FAIL (404 → DEGRADED) | FAIL (404 error events indexed as documents) | FAIL (404 error events indexed as documents) |
The fix only touches _dev/deploy/docker/files/config.yml (test-only, no package version bump or changelog entry needed). It does not change the 10s interval in the test configs.
Activity
infra-vault-gh-plugin-prod commentedon Nov 20, 2026
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)