I have an existing logstash config that reads data from topbeat and outputs data to kafka(config below). I have added the metrics filter to get the throughput of documents processed. After upgrading to logstash 2.2.0 ,I am not seeing any output in stdout from metrics filter.This only started happening after upgrading to logstash-2.2.0.
input {
beats {
port => 5044
}
}
filter {
if [type] == "process" {
if [proc][username] == "root" and [proc][cpu][total_p] < 0.1 and [proc][mem][rss] < 1000000 {
drop{}
}else{
metrics {
meter => "documents"
add_tag => "metric"
flush_interval => 60
}
}
}
}
according to the documentation, Configuration files with these settings present are invalid and prevent Logstash from starting.
Why is my logstash configuration starting succesfully then ? Not only I am seeing it start , it is also succesfully aplying the logic that is encapuslated in the [tags] construct
With filters there is the possibility that a "type" field is present in
your log payload which would make the value type valid from a validation
prospective.
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.