diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 7ab6da89c2d..5dae24cc98f 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -49,6 +49,7 @@ https://github.com/elastic/beats/compare/v5.3.0...master[Check the HEAD diff] *Packetbeat* - Clean configured geoip.paths before attempting to open the database. {pull}4306[4306] +- Fix `packetbeat.interface` options that contain underscores (e.g. `with_vlans` or `bpf_filter`). {pull}4378[4378] *Winlogbeat* diff --git a/packetbeat/config/config.go b/packetbeat/config/config.go index 977e4e1a621..8f4b16760bc 100644 --- a/packetbeat/config/config.go +++ b/packetbeat/config/config.go @@ -18,13 +18,13 @@ type Config struct { } type InterfacesConfig struct { - Device string - Type string - File string - WithVlans bool - BpfFilter string - Snaplen int - BufferSizeMb int + Device string `config:"device"` + Type string `config:"type"` + File string `config:"file"` + WithVlans bool `config:"with_vlans"` + BpfFilter string `config:"bpf_filter"` + Snaplen int `config:"snaplen"` + BufferSizeMb int `config:"buffer_size_mb"` TopSpeed bool Dumpfile string OneAtATime bool