Skip to content

Commit

Permalink
revert event.type and use input.type instead
Browse files Browse the repository at this point in the history
This commit revert the decision done in elastic#6078 and will use
`input.type` to replace the `prospector.type`
  • Loading branch information
ph committed Jan 30, 2018
1 parent d9b1237 commit 80082dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions filebeat/_meta/fields.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
required: true
description: >
The input type from which the event was generated. This field is set to the value specified
for the `type` option in the input section of the Filebeat config file. (DEPRECATED: see `event.type`)
for the `type` option in the input section of the Filebeat config file. (DEPRECATED: see `input.type`)
- name: event.type
- name: input.type
required: true
description: >
The input type from which the event was generated. This field is set to the value specified
Expand Down
2 changes: 1 addition & 1 deletion filebeat/channel/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (f *OutletFactory) Create(cfg *common.Config, dynFields *common.MapStrPoint
fields["prospector"] = common.MapStr{
"type": config.Type,
}
fields["event"] = common.MapStr{
fields["input"] = common.MapStr{
"type": config.Type,
}
}
Expand Down
4 changes: 2 additions & 2 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -957,11 +957,11 @@ Log stream when reading container logs, can be 'stdout' or 'stderr'
required: True
The input type from which the event was generated. This field is set to the value specified for the `type` option in the input section of the Filebeat config file. (DEPRECATED: see `event.type`)
The input type from which the event was generated. This field is set to the value specified for the `type` option in the input section of the Filebeat config file. (DEPRECATED: see `input.type`)
[float]
=== `event.type`
=== `input.type`
required: True
Expand Down

0 comments on commit 80082dd

Please sign in to comment.