logstash-plugins / logstash-output-udp

Apache License 2.0
7 stars 10 forks source link

Ability to send custom message #1

Open slava-vishnyakov opened 9 years ago

slava-vishnyakov commented 9 years ago

Please add the ability to send custom message instead of payload, something like this:

output {
  udp {
      host => '127.0.0.1'
      port => 222
      message => "response_time:%{http_response_time}"
  }
}

Thank you!

ph commented 9 years ago

The UDP plugin uses codec, so you should be able to do something like:

output {
  udp {
   codec => plain {
   format => "response_time:%{http_response_time}"
  }
  host => "127.0.0.1"
  port => 222
}

I did not test it but it should work.

C0FFEEC0FFEE commented 4 years ago

Thanks, this works with version 7.9.0 :)