-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
x-pack/filebeat/module/cisco: fix event.{outcome,type} handling #29698
Conversation
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
/test |
@@ -383,7 +383,7 @@ processors: | |||
if: "ctx._temp_.cisco.message_id == '304001'" | |||
field: "event.outcome" | |||
description: "304001" | |||
value: success | |||
value: "allowed" |
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.
I don't see allowed or dropped specified as valid values for event.outcome, only success and failure. My understanding is that this should go into event.type. Am I missing something?
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.
These are temporary values that are used to communicate to the painless later what the combination of outcome
and type
should be. If state is squashed to a binary of success/failure it is not possible to reconstruct the possibility of a successful denial. I could have done if with a second variable, but this feels better.
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.
These get sorted out here 76fe29f#diff-35840a6c4edae3a4fc97e0a1c84d5576fcfd9bb64faf12e7a6800347a5728cb1R1857-R1872. If you'd like I can add commentary explaining this.
This pull request is now in conflicts. Could you fix it? 🙏
|
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.
LGTM
(cherry picked from commit cb22d1d)
…) (#29909) (cherry picked from commit cb22d1d) Co-authored-by: Dan Kortschak <[email protected]>
What does this PR do?
This fixes handling of event.outcome and event.type field in Cisco ASA and FTD modules to more correctly match the field descriptions in ECS.
Why is it important?
Currently the fields do not conform to ECS. This is #29581.
Checklist
- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Run
TESTING_FILEBEAT_MODULES=cisco MODULES_PATH=module mage -v pythonIntegTest
in x-pack/filebeat.First commit is boring, being just the update for golden files to prune
@timestamp
fields.Related issues
Use cases
N/A
Screenshots
N/A
Logs
N/A