Skip to content

akamai: add flat rule_ids and rule_messages fields to siem data stream - #22755

Open
ShourieG wants to merge 3 commits into
elastic:mainfrom
ShourieG:akamai-siem-rule-ids-messages
Open

ShourieG wants to merge 3 commits into
elastic:mainfrom
ShourieG:akamai-siem-rule-ids-messages

Conversation

@ShourieG

@ShourieG ShourieG commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Proposed commit message

akamai: add flat rule_ids and rule_messages fields to siem data stream

The decoded rule IDs and rule messages of an Akamai SIEM event were only
available inside akamai.siem.rules. That field is mapped as nested, and
nested fields cannot be queried from ES|QL, so the values could not be
used in ES|QL based detection rules.

Collect the decoded attackData.rules and attackData.ruleMessages values
in the existing base64 decode script and write them to two new keyword
fields, akamai.siem.rule_ids and akamai.siem.rule_messages, in the same
way akamai.siem.rule_tags and akamai.siem.rule_actions are already
built. Values are de-duplicated and keep their original case so they
match akamai.siem.rules.rules, akamai.siem.rules.ruleMessages and the
rule IDs published by Akamai. A value that fails base64 decoding is
left out of the new fields; the decode warning stays in the nested
entry only.

The change only adds fields. akamai.siem.rules, akamai.siem.rule_tags
and akamai.siem.rule_actions are unchanged. Events collected by the
siem_otel data stream are written to the akamai.siem dataset and go
through the same ingest pipeline, so they get the new fields as well.

Fixes #22728

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • Rule IDs keep their original case (for example BOT-BROWSER-IMPERSONATOR), unlike rule_tags and rule_actions, which are lowercased. The snippet proposed in the issue lowercases them.
  • The field is named rule_ids to match the plural rule_tags and rule_actions. The issue suggests rule_id.
  • No pipeline fixture has a repeated rule ID or message, so de-duplication of the new fields is not covered by a test.
  • The system tests were not run locally. The siem_otel system test is already skipped on main (Allow data stream overrides for integration packages during system tests. elastic-package#2109), so the OTel path is not tested end to end.

How to test this PR locally

cd packages/akamai
elastic-package stack up -d --services elasticsearch
eval "$(elastic-package stack shellinit)"
elastic-package test pipeline --data-streams siem

The pipeline test passes locally, and elastic-package build and elastic-package check succeed.

Related issues

The decoded rule IDs and rule messages of an Akamai SIEM event were only
available inside akamai.siem.rules. That field is mapped as nested, and
nested fields cannot be queried from ES|QL, so the values could not be
used in ES|QL based detection rules.

Collect the decoded attackData.rules and attackData.ruleMessages values
in the existing base64 decode script and write them to two new keyword
fields, akamai.siem.rule_ids and akamai.siem.rule_messages, in the same
way akamai.siem.rule_tags and akamai.siem.rule_actions are already
built. Values are de-duplicated and keep their original case so they
match akamai.siem.rules.rules, akamai.siem.rules.ruleMessages and the
rule IDs published by Akamai. A value that fails base64 decoding is
left out of the new fields; the decode warning stays in the nested
entry only.

The change only adds fields. akamai.siem.rules, akamai.siem.rule_tags
and akamai.siem.rule_actions are unchanged. Events collected by the
siem_otel data stream are written to the akamai.siem dataset and go
through the same ingest pipeline, so they get the new fields as well.

Fixes elastic#22728

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@ShourieG
ShourieG requested review from a team as code owners November 26, 2026 15:39
@ShourieG ShourieG added the enhancement New feature or request label Nov 26, 2026
Copilot AI balanced review requested due to automatic review settings November 26, 2026 15:39
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mergify

mergify Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

@github-actions

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@ShourieG ShourieG self-assigned this Nov 26, 2026
@ShourieG ShourieG added Integration:akamai Akamai Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Nov 26, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The fixture does not exercise duplicate rule IDs or messages, leaving the new de-duplication settings untested and allowing their removal to pass pipeline tests.

1 open issue
What changed in this PR

Adds flat Akamai SIEM rule IDs and messages so ES|QL detection rules can query values previously available only in nested fields, addressing #22728.

Changes:

  • Collects decoded IDs and messages into deduplicated arrays while preserving case and existing nested data.
  • Adds keyword mappings, field documentation, and expected pipeline outputs.
  • Bumps the package to version 4.3.0 and records the enhancement.
File Description
packages/​akamai/​manifest.yml Bumps the package version to 4.3.0.
packages/​akamai/​docs/​README.md Documents the two new keyword fields.
packages/​akamai/​data_stream/​siem/​fields/​fields.yml Defines flat rule ID and message mappings.
packages/​akamai/​data_stream/​siem/​elasticsearch/​ingest_pipeline/​default.yml Collects decoded values and appends them without duplicates.
packages/​akamai/​data_stream/​siem/​_dev/​test/​pipeline/​test-placeholder-json.log-expected.json Adds expected flat fields to pipeline test results.
packages/​akamai/​changelog.yml Records the new fields as an enhancement.

Review effort: Balanced

Every decoded rule ID and rule message in the siem pipeline fixture was
unique, so removing allow_duplicates: false from either new append
processor still passed the pipeline test.

Add two events to the fixture. In the first, one rule fires twice on
different selectors next to a second rule, so both the rule IDs and the
rule messages repeat. In the second, two different rules share one
message, so only the messages repeat. The nested akamai.siem.rules
entries keep every repeat while the flat fields hold one copy of each
value.

Updates elastic#22728

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 15:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the change exposing Akamai SIEM rule IDs and messages as flat fields for ES|QL detection rules.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

✅ All changelog entries have the correct PR link.

@vera-review-bot

Copy link
Copy Markdown
Contributor

🟢 No issues across the latest commits 3dde130.

A new commit triggers another review — at most once every 15 minutes. I skip the PR while it's approved or has merge conflicts.

🤖 AI-Generated Review | Vera Review Bot - v0.4.8 | 📚 Knowledge base: integration-skills

⚠️ Automated review — verify suggestions before applying.

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

cc @ShourieG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:akamai Akamai Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Akamai SIEM] Decode rule id and rule messages from the field akamai.siem.rules into dedicated fields.

2 participants