Repository navigation
Conversation
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>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Tick the box to add this pull request to the merge queue (same as
|
✅ 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. |
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
There was a problem hiding this comment.
🟡 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>
|
✅ All changelog entries have the correct PR link. |
|
🟢 No issues across the latest commits 3dde130.
🤖 AI-Generated Review | Vera Review Bot - v0.4.8 | 📚 Knowledge base: integration-skills
|
💚 Build Succeeded
cc @ShourieG |

Proposed commit message
Checklist
changelog.ymlfile.Author's Checklist
BOT-BROWSER-IMPERSONATOR), unlikerule_tagsandrule_actions, which are lowercased. The snippet proposed in the issue lowercases them.rule_idsto match the pluralrule_tagsandrule_actions. The issue suggestsrule_id.siem_otelsystem 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
The pipeline test passes locally, and
elastic-package buildandelastic-package checksucceed.Related issues