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

Cherry-pick #18704 to 7.x: Fix byte counters for source/destination/server/client #20530

Closed
wants to merge 1 commit into from

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Aug 10, 2020

Cherry-pick of PR #18704 to 7.x branch. Original message:

  • Bug

What does this PR do?

The original code mixes source/destination/server/client for byte counters.
Original:
client.bytes: 32
destination.bytes: 32
server.bytes: 33
source.bytes: 33
But client is source, not destination.
Fix is:
client.bytes: 32
source.bytes: 32
server.bytes: 33
destination.bytes: 33

Why is it important?

Because with original code source and destination counters are wrong.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • 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.

PANW firewalls expone why a session is ended (endreason). Currenlty it's not tracked.
End reason is important to track down why a specific session is ended (timeout, rst from client/server...). This adds panw.panos.endreason.

Co-authored-by: Andrea Dainese <andrea.dainese@gmail.com>
Co-authored-by: Adrian Serrano <adrisr83@gmail.com>
(cherry picked from commit 6c0c3bf)
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@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 Aug 10, 2020
@andrewkroh andrewkroh closed this Aug 10, 2020
@zube zube bot removed the [zube]: Done label Nov 9, 2020
@andrewkroh andrewkroh deleted the backport_18704_7.x branch January 14, 2022 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants