Add a field


(elastic-fan) #1

hi,
i am getting logs from the server and in logstash i would like to add a field and value for it how can i do this


(Magnus B├Ąck) #2

For example like this:

filter {
  mutate {
    add_field => {
      "fieldname" => "fieldvalue"
    }
  }
}

(elastic-fan) #3

thanks


(system) #4