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 Netflow Template Sharing not working #42080

Closed
simioa opened this issue Dec 17, 2024 · 1 comment · Fixed by #42079
Closed

Filebeat Netflow Template Sharing not working #42080

simioa opened this issue Dec 17, 2024 · 1 comment · Fixed by #42079
Labels
bug Filebeat Filebeat Team:Security-Deployment and Devices Deployment and Devices Team in Security Solution

Comments

@simioa
Copy link
Contributor

simioa commented Dec 17, 2024

During my tests with the Filebeat Netflow Input, I found that sharing templates by using the share_templates parameter did not work. The template was received multiple times, but was never applied to subsequent Netflow events.

"[netflow-v9] Packet from:127.0.0.1:59773 src:256 seq:499564737"
"[netflow-v9] FlowSet ID 0 length 80"
"[netflow-v9] state - addTemplate 256 -"
"[netflow-v9] Packet from:127.0.0.1:56714 src:256 seq:499564738"
"[netflow-v9] Packet from:127.0.0.1:54741 src:256 seq:499564739"
"[netflow-v9] FlowSet ID 256 length 100"
"[netflow-v9] No template for ID 256"

I then looked at the code and found out that the shareTemplates parameter is not set in the decoder. I created a Merge Request that may fixes this issue: #42079

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 17, 2024
@andrewkroh andrewkroh added bug Filebeat Filebeat Team:Security-Deployment and Devices Deployment and Devices Team in Security Solution labels Dec 17, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Dec 17, 2024
mergify bot pushed a commit that referenced this issue Dec 19, 2024
Pass the share_templates configuration option into the NetflowV9Protocol
struct. The parameter was not being set, and therefore was always false so
it was not possible to use this option.

Added a test case to prevent future regressions.

Closes #42080

(cherry picked from commit 323c69e)
andrewkroh pushed a commit that referenced this issue Dec 19, 2024
)

Pass the share_templates configuration option into the NetflowV9Protocol
struct. The parameter was not being set, and therefore was always false so
it was not possible to use this option.

Added a test case to prevent future regressions.

Closes #42080

(cherry picked from commit 323c69e)

Co-authored-by: Ioannis Simeonidis <[email protected]>
mergify bot pushed a commit that referenced this issue Dec 20, 2024
Pass the share_templates configuration option into the NetflowV9Protocol
struct. The parameter was not being set, and therefore was always false so
it was not possible to use this option.

Added a test case to prevent future regressions.

Closes #42080

(cherry picked from commit 323c69e)

# Conflicts:
#	x-pack/filebeat/input/netflow/decoder/v9/v9.go
mergify bot pushed a commit that referenced this issue Dec 20, 2024
Pass the share_templates configuration option into the NetflowV9Protocol
struct. The parameter was not being set, and therefore was always false so
it was not possible to use this option.

Added a test case to prevent future regressions.

Closes #42080

(cherry picked from commit 323c69e)
mergify bot pushed a commit that referenced this issue Dec 20, 2024
Pass the share_templates configuration option into the NetflowV9Protocol
struct. The parameter was not being set, and therefore was always false so
it was not possible to use this option.

Added a test case to prevent future regressions.

Closes #42080

(cherry picked from commit 323c69e)
mjwolf added a commit that referenced this issue Dec 27, 2024
Pass the share_templates configuration option into the NetflowV9Protocol
struct. The parameter was not being set, and therefore was always false so
it was not possible to use this option.

Added a test case to prevent future regressions.

Closes #42080

(cherry picked from commit 323c69e)

Co-authored-by: Ioannis Simeonidis <[email protected]>
Co-authored-by: Michael Wolf <[email protected]>
mjwolf added a commit that referenced this issue Dec 27, 2024
Pass the share_templates configuration option into the NetflowV9Protocol
struct. The parameter was not being set, and therefore was always false so
it was not possible to use this option.

Added a test case to prevent future regressions.

Closes #42080

(cherry picked from commit 323c69e)

Co-authored-by: Ioannis Simeonidis <[email protected]>
Co-authored-by: Michael Wolf <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Filebeat Filebeat Team:Security-Deployment and Devices Deployment and Devices Team in Security Solution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants