Skip to content
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

[Filebeat] Fix dissect pattern for Cisco WebVPN message 716002 #22966

Merged

Conversation

andrewkroh
Copy link
Member

What does this PR do?

The message can contain one of several session termination reasons so don't hardcode "User requested" into the pattern.

Reference: https://www.cisco.com/c/en/us/td/docs/security/asa/syslog/b_syslog/syslogs8.html#con_4776918

Why is it important?

The module was failing to parse some WebVPN log messages.

Checklist

  • My code follows the style guidelines of this project
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Dec 7, 2020
The message can contain one of several session termination reasons so don't hardcode "User requested" into the pattern.

Reference: https://www.cisco.com/c/en/us/td/docs/security/asa/syslog/b_syslog/syslogs8.html#con_4776918
@andrewkroh andrewkroh marked this pull request as ready for review December 7, 2020 20:52
@andrewkroh andrewkroh force-pushed the bugfix/fb/cisco-asa-webvpn-dissect branch from 8693f7f to c16bc4c Compare December 7, 2020 20:52
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@elasticmachine
Copy link
Collaborator

elasticmachine commented Dec 7, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #22966 updated

  • Start Time: 2020-12-09T18:15:51.296+0000

  • Duration: 47 min 34 sec

Test stats 🧪

Test Results
Failed 0
Passed 2421
Skipped 259
Total 2680

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 2421
Skipped 259
Total 2680

@@ -546,7 +546,7 @@ processors:
- dissect:
if: "ctx._temp_.cisco.message_id == '716002'"
field: "message"
pattern: "Group %{} User %{source.user.name} IP %{source.address} WebVPN session terminated: User Requested."
pattern: "Group %{} User %{source.user.name} IP %{source.address} WebVPN session terminated: %{}"
Copy link
Contributor

Choose a reason for hiding this comment

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

any value in mapping this to event.reason?

Copy link
Member Author

Choose a reason for hiding this comment

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

That sounds good. I was looking for a field to put this into.

@andrewkroh andrewkroh merged commit 6955f81 into elastic:master Dec 9, 2020
@andrewkroh andrewkroh added the needs_backport PR is waiting to be backported to other branches. label Dec 9, 2020
@andrewkroh andrewkroh removed the needs_backport PR is waiting to be backported to other branches. label Dec 15, 2020
andrewkroh added a commit to andrewkroh/beats that referenced this pull request Dec 15, 2020
…ic#22966)

The message can contain one of several session termination reasons so don't hardcode "User requested" into the pattern.

Reference: https://www.cisco.com/c/en/us/td/docs/security/asa/syslog/b_syslog/syslogs8.html#con_4776918
(cherry picked from commit 6955f81)
andrewkroh added a commit that referenced this pull request Dec 15, 2020
… (#23131)

The message can contain one of several session termination reasons so don't hardcode "User requested" into the pattern.

Reference: https://www.cisco.com/c/en/us/td/docs/security/asa/syslog/b_syslog/syslogs8.html#con_4776918
(cherry picked from commit 6955f81)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants