In a nested if condition like
if [type] == "tcp"{
if [parsed_message][NotificationType] == "NOTIFY"
The if block inside "tcp" is not working since it is not getting the value of "[parsed_message][NotificationType]" but if i give the same condition like
if [parsed_message][NotificationType] == "NOTIFY" and [type] == "tcp"{
It is working fine, what is the problem here ?
That doesn't help without also knowing your configuration. I meant the document produced by Logstash, i.e. basically the input to the conditional that's not working. Use a stdout { codec => rubydebug } output.
What does the full configuration block look like? It seems like you are missing a curly brace on the second line, but I assume that could simply be a cut and paste error.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.