- Notifications
You must be signed in to change notification settings - Fork 513
[microsoft_dhcp] Add more event.action and event.outcome values #2296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
| Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
| Much appreciated @pemontto ! 👍 Do you happen to have any sample loglines that I can add tests for? If not I can go ahead and merge it. I might need to make some small commits to the PR to resolve CI that's all. |
| /test |
| @P1llus yes, forgot to link the ticket elastic/beats#29221 Here are some selected samples |
| For reference these are the Event ID meanings I have in my log header.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version in the manifest.yml needs updated and an entry added to the changelog.yml.
packages/microsoft_dhcp/data_stream/log/elasticsearch/ingest_pipeline/default.yml Outdated Show resolved Hide resolved
packages/microsoft_dhcp/data_stream/log/elasticsearch/ingest_pipeline/default.yml Outdated Show resolved Hide resolved
packages/microsoft_dhcp/data_stream/log/elasticsearch/ingest_pipeline/default.yml Outdated Show resolved Hide resolved
packages/microsoft_dhcp/data_stream/log/elasticsearch/ingest_pipeline/default.yml Outdated Show resolved Hide resolved
| /test The version in the manifest.yml needs updated and an entry added to the changelog.yml. And the pipeline test expected output files probably need updated too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a note, I am working on adding DHCPv6 support (#2136) and it uses event IDs above 50 (some around 1000 and others around 11000). We'll need to clamp this check with some upper bound, but I'm not entirely sure what that'd be. I'm not sure how close this is to merging, but we can wait to add the upper bound for my DHCPv6 PR.
There's another check below (which seems wrong actually):
ctx._tmp_?.code >= 50 && ctx._tmp_?.code >= 60 I think the >= 60 part is wrong, but regardless, that will also need to be clamped by some upper bound that doesn't conflict with DHCPv6 event IDs.
| I updated the generated test files, incremented the version, and added a changelog. This should be good to merge now. |
What does this PR do?
This PR adds more MS DHCP action types and uses those codes to determine failure outcomes.
Checklist
changelog.ymlfile.Related issues
elastic/beats#29221