Is there anyway I can print the events with ruby in Logstash?
Logstash.conf file:
input {
http {
port => 9600
id => "my_plugin_id"
}
}
filter {
ruby {
code => "puts event['message']"
}
}
output{
stdout {
codec => rubydebug {
metadata => true
}
}
}
Error:
[2019-06-11T17:59:05,893][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `' for #LogStash::Event:0x642b9c0d