Using filters with logstash-forwarder


(Guido) #1

I can use filters such as "environment" to add an environment variable to my logs with the logstash agent. This is very useful when you need to enrich your logs with metadata, for example:

filter {
  environment {
    add_field_from_env => {
      "myvar" => "MY_ENV_VAR"
    }
  }
}

Is it possible to do the same with logstash-forwarder or are you restricted to a network and a files+fields section as shown in the example on github?

Thanks


(Mark Walkom) #2

LSF doesn't have this, it's a barebones shipper designed for simply shipping.

This might do what you want.


(system) #3