Skip to content

Commit

Permalink
Remove count field from filebeat event
Browse files Browse the repository at this point in the history
This closes elastic#778

Remove count as required field from system tests checks
  • Loading branch information
ruflin committed Mar 16, 2016
1 parent 0a621ee commit ed2a834
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down
1 change: 0 additions & 1 deletion filebeat/input/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func (f *FileEvent) ToMapStr() common.MapStr {
"message": f.Text,
"type": f.DocumentType,
"input_type": f.InputType,
"count": 1,
}

return event
Expand Down
3 changes: 1 addition & 2 deletions libbeat/tests/system/beat/beat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"):
Expand Down

0 comments on commit ed2a834

Please sign in to comment.