Count/increment is not working in logstash -


i filter "status code" output attribute each line. like, code = 100, code = 100, code = 200, code = 200,code = 200,code = 300

here, i'm trying count of each type of status codes 100 = 2, 200 = 3, 300 = 1

the config working on looks like,

filter {  grok {     patterns_dir => ["./patterns"]     match => [ "message", ["%{custompattern:code}"  ]]  }  mutate {     remove_field => ["host", "path", "@version", "@timestamp"]  } }  output {  statsd {        increment => "%{code}"        count => ["code", "%{code}"]        }  stdout {        codec => json  } } 

i know statsd config wrong, couldn't fix it.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -