Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove host field from output. #227

Open
TomonoriSoejima opened this issue Aug 3, 2020 · 1 comment
Open

How to remove host field from output. #227

TomonoriSoejima opened this issue Aug 3, 2020 · 1 comment

Comments

@TomonoriSoejima
Copy link

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.

@sivatarunp
Copy link

Any update on this? Facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants