Skip to content

Commit

Permalink
Fix detect_sequence_reset flag in netflow module (elastic#24270) (ela…
Browse files Browse the repository at this point in the history
…stic#24458)

This flag was not passed to the input unless set to true, which is the
default. It was impossible to turn it off.

Fixes elastic#24268

(cherry picked from commit 22e20a1)
  • Loading branch information
adriansr authored Mar 22, 2021
1 parent bf4fdb2 commit 5bac682
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix default `scope` in `add_nomad_metadata`. {issue}24559[24559]
- Fix Cisco ASA parser for message 722051. {pull}24410[24410]
- Fix `google_workspace` pagination. {pull}24668[24668]
- Fix netflow module ignoring detect_sequence_reset flag. {issue}24268[24268] {pull}24270[24270]

*Heartbeat*

Expand Down
2 changes: 0 additions & 2 deletions x-pack/filebeat/module/netflow/log/config/netflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ custom_definitions:
{{end}}
{{end}}

{{ if .detect_sequence_reset}}
detect_sequence_reset: {{.detect_sequence_reset}}
{{end}}

tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}
Expand Down
1 change: 1 addition & 0 deletions x-pack/filebeat/module/netflow/log/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var:
- name: timeout
- name: custom_definitions
- name: detect_sequence_reset
default: true
- name: tags
default: [forwarded]
- name: internal_networks
Expand Down

0 comments on commit 5bac682

Please sign in to comment.