Open
Description
previous discuss
https://discuss.elastic.co/t/not-to-add-host-path-field/49889/2
Hi.
With this configuration,
input {
file {
codec ... json
path => ...
}
}
output {
elasticsearch {
...
}
}
logstash will add fields 'host' and 'path' to the origin document.
"_source": {
...
"path": "/home1/.logstash/input/default_agg_daily/0505.json",
"host": "xyzzzz"
},
And I want to remove path and host by
mutate {remove_fileds => [...] }
But some case the origin document may contain field 'path' and/or 'host'.
So I can not use remove_filds simply.
How about provide an option to disable host and path field adding?