New to Logstash, was trying to filer certain messages which have matching either of INFO, ERROR, WARNING and having time stamp in certain format only. I don't want any other message by having bellow filter.
filter { date { match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ] } grok { match => [ "message" , "INFO" ] } grok { match => [ "message" , "ERROR" ] } grok { match => [ "message" , "WARNING" ] } }
But i see messages like below were as well getting filtered. qqqqqqqqqqqqqqqqqqqqqqqqq or aaaaaaaaaaaaaaaaaaaaaaa
I want messages which contain INFO or ERROR or WARNING or having timestamp to be filtered to output. Rest all messages should be stopped for writing to output stream.
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.