Hi,
The "fields" property is here to add custom fields to an input.
The doc says:
Fields can be scalar values, arrays, dictionaries, or any nested combination of these.
But if you set a scalar value like this:
fields: "foobar"
Filebeat outputs the following error:
Exiting: Error in initing input: required 'object', but found 'string' in field 'filebeat.inputs.0.fields' (source:'/etc/filebeat/filebeat.yml')
If I set the field using the array, like this:
fields: ["foobar"]
or this:
fields:
- "foobar"
I've got no error but the field is not in the ouput.
The only way it works is with the dictionary type:
fields:
foobar: true
Am I missing something or the doc is wrong?