config - Print a string to stdout using Logstash 1.4? -


so testing config using metrics logstash website here.

input {   generator {     type => "generated"   } }  filter {   if [type] == "generated" {     metrics {       meter => "events"       add_tag => "metric"     }   } }  output {   # emit events 'metric' tag   if "metric" in [tags] {     stdout {       message => "rate: %{events.rate_1m}"     }   } } 

but looks "message" field stdout deprecated. correct way in logstash 1.4?

so figured out after looking @ jira page logstash.

note: metrics print or "flush" every 5 seconds if generating logs less 5 seconds, won't see metrics print statement

looks should be:

output {         if "metric" in [tags]         {                 stdout {                                 codec => line {                                         format => "rate: %{events.rate_1m}"                         }                  }         } } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -