-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packetbeat protocol analyzer enhancements
- Optionally configure protocol analyzers using dictionary and/or list - Add 'fields', 'fields_under_root' and 'tags' settings to every protocol analyzer - update sample config file to use list style configuration - add deprecated warning if dictionary style configuration is used - update docs This change allows for configuring packetbeat protocols in 2 different styles... both styles can be used at the same time,. 1.) (deprecated) dictionary style: ``` packetbeat.protocols.http: ... packetbeat.protocols.dns: ... ``` 2.) array style: ``` packetbeat.protocols: - type: http ... - type: dns ... ``` Examples (1) and (2) are equivalent. But array style allows to configure a protocol analyzer multiple times: e.g. (3) array style with multiple instances of http protocol analyzer: ``` packetbeat.protocols: - type: http ports: [80] fields.service: nginx - type: http ports: [9200] fields.service: elasticsearch ``` 4) mixed style: ``` packetbeat.protocols.http: ... packetbeat.protocols: - type: dns ... ``` Limitations: a) due to limitations in yaml parser, only capturing the last 'name' in a dictionary the key name `packetbeat.protocols` must not be used multiple times. e.g. this will result in an incompletely processed config (only DNS will be configured): ``` packetbeat.protocols: http: ... packetbeat.protocols: - type: dns ``` b) Reusing port numbers (overlapping) might result in one module not seeing any packets (this is already the case if any 2 protocols shall listen on same port number).
- Loading branch information
urso
committed
Feb 21, 2017
1 parent
41f75de
commit 7dfa8f0
Showing
12 changed files
with
271 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.