Skip to content

[9.4] Add mappings for process and security event sources metrics#763

Open
nicholasberlin wants to merge 2 commits into
9.4from
metrics-sources-9.4
Open

[9.4] Add mappings for process and security event sources metrics#763
nicholasberlin wants to merge 2 commits into
9.4from
metrics-sources-9.4

Conversation

@nicholasberlin

Copy link
Copy Markdown
Contributor

Backport of #762 to 9.4 (clean cherry-pick, regeneration verified per-branch).

Endpoint.metrics.documents_volume.{process,security}_events.sources.* only ever existed in custom_documentation - the fields were never defined in custom_schemas, so they are missing from the package mappings. With dynamic: false on the metrics index template, endpoint sends these fields but they are not indexed.

Should merge after (or together with) #762.

Related: elastic/endpoint-dev#20924.

Generated with Claude Code.

Endpoint.metrics.documents_volume.{process,security}_events.sources.*
were added to custom_documentation only (#652, #653), so the fields were
never mapped in the package. The metrics index template sets
dynamic: false, so these fields are currently not indexed on any stack.

Define them in custom_schemas/custom_endpoint.yml mirroring the existing
api_events.sources.* mappings, and regenerate with make.

(cherry picked from commit 322d76a)
@nicholasberlin nicholasberlin requested a review from a team as a code owner July 10, 2026 14:41
@nicholasberlin nicholasberlin requested review from joeypoon and pzl July 10, 2026 14:41
Requested in review: sample values for the new
documents_volume.{process,security}_events.sources.* mappings so the
automated mapping tests exercise them. Source values reflect what the
endpoint emits: process event sources are opcode names (load_module),
security event sources are diagnostic_<event id> strings.

(cherry picked from commit 52535bc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant