I would like to look at the contents of the input that gets sent to the filters. I have the following code inserted in one of the filters. However, I run into ruby errors. How do I print the content of [netflow] which has nested fields?
filter {
ruby {
code => '
logger.info("Raw netflow input is as follows: ")
logger.info("value" => event.get("[netflow]"))
'
}
...
...
}
The above errors out with the following:
[2019-03-27T10:20:50,282][ERROR][logstash.filters.ruby ] Ruby exception occurred: #<Hash:0x71745749> is not a string
Thanks