From ed2a83440ac267fd6b9afe7a183fe80054146822 Mon Sep 17 00:00:00 2001 From: ruflin Date: Wed, 16 Mar 2016 13:03:15 +0100 Subject: [PATCH] Remove count field from filebeat event This closes https://github.com/elastic/beats/issues/778 Remove count as required field from system tests checks --- CHANGELOG.asciidoc | 1 + filebeat/input/file.go | 1 - libbeat/tests/system/beat/beat.py | 3 +-- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 0456b06dc4c..2bef87f4bef 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -29,6 +29,7 @@ https://github.com/elastic/beats/compare/v1.1.2...master[Check the HEAD diff] *Filebeat* - Default config for ignore_older is now infinite instead of 24h, means ignore_older is disabled by default. Use close_older to only close file handlers. - Scalar values in used in the `fields` configuration setting are no longer automatically converted to strings. {pull}1092[1092] +- Count field was removed from event as not used in filebeat {issue}778[778] *Winlogbeat* diff --git a/filebeat/input/file.go b/filebeat/input/file.go index 49c9df9611e..7c654949efa 100644 --- a/filebeat/input/file.go +++ b/filebeat/input/file.go @@ -64,7 +64,6 @@ func (f *FileEvent) ToMapStr() common.MapStr { "message": f.Text, "type": f.DocumentType, "input_type": f.InputType, - "count": 1, } return event diff --git a/libbeat/tests/system/beat/beat.py b/libbeat/tests/system/beat/beat.py index 2977144757f..cccdf1797a8 100644 --- a/libbeat/tests/system/beat/beat.py +++ b/libbeat/tests/system/beat/beat.py @@ -215,8 +215,7 @@ def read_output(self, output_file=None): jsons.append(self.flatten_object(json.loads(line), [])) self.all_have_fields(jsons, ["@timestamp", "type", - "beat.name", "beat.hostname", - "count"]) + "beat.name", "beat.hostname"]) return jsons def copy_files(self, files, source_dir="files/"):