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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -