Skip to content

Options to disable 'host' and/or 'path' field adding. #128

Open
@jeesim2

Description

@jeesim2

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions