Print logstash event in ruby filter -
hello i'm exporting logs rabbitmq. in order debug, print content of message before applying regex , base64 decode. i'm trying this:
input { rabbitmq { host => "***host***" vhost => "/" exchange => "exchange" key => "#" } } filter { ruby { code => "print event['message']" } } output { elasticsearch { host => "localhost" } }
but have nil
values messages.
use print message.
input { stdin{} } filter { ruby { code => " puts event['message'] " } } output { stdout { codec => "rubydebug" } }
fyi.
Comments
Post a Comment