diff --git a/filebeat/_meta/fields.common.yml b/filebeat/_meta/fields.common.yml index e1873a9191ac..94d87dd7c787 100644 --- a/filebeat/_meta/fields.common.yml +++ b/filebeat/_meta/fields.common.yml @@ -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 diff --git a/filebeat/channel/factory.go b/filebeat/channel/factory.go index c77fb0afba50..cf3b2de30dd4 100644 --- a/filebeat/channel/factory.go +++ b/filebeat/channel/factory.go @@ -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, } } diff --git a/filebeat/docs/fields.asciidoc b/filebeat/docs/fields.asciidoc index dfeec75dd36e..e805e88a5085 100644 --- a/filebeat/docs/fields.asciidoc +++ b/filebeat/docs/fields.asciidoc @@ -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