I want eve.json contains only packages which trigger my rules, let’s say this one:
alert udp any any → any any (msg:“UDP GGA message found”; content: “GGA”; sid: 3000;)
At the moment this is the config of eve.json:
stats:
enabled: yes
interval: 8outputs:
- eve-log:
enabled: yes
filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
filename: eve.json
level: Alert ← I change this from “Info” to “Alert”
However I still get eve.json updated every 8 seconds (the interval) with the stats log like this:
{“timestamp”:“2021-05-04T12:55:44.548639+0000”,“event_type”:“stats”,“stats”: {etc… etc…}}
I tried to set stats.enabled: no but it gives an error on start up.
I also tried stats.decoder-events: false but it still write events every interval value seconds.
How can I avoid this?
Thank you in advance!