Skip to content

How to remove host field from output. #227

Open
@TomonoriSoejima

Description

@TomonoriSoejima

I noticed that the resulting file on s3 bucket comes with additional information namely timestamp and hostname.
Is this possible to ignore them?

  • My sample config
input { stdin { } }


filter {

      mutate {
        remove_field => [ "host" ]
      }

}


output {
  stdout { codec => rubydebug }
  s3 {
    access_key_id => "minioadmin"
    secret_access_key => "minioadmin"
    endpoint => "http://127.0.0.1:9000"
    bucket => "logstash"
    additional_settings => {
          "force_path_style" => true
        }
  }
}

I was hoping to see
2020-07-30T00:39:35.197Z rice since host is removed by mutate filter, but I got
2020-07-30T00:39:35.197Z %{host} rice instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions