I have find some closed topic with releated problems, but noone contain solution or it doesn’t help me.
So I would like to exclude some event_id from servers.
I use graylog-sidecar with WinLogBeat.
I started with these examples:
https://www.elastic.co/guide/en/beats/winlogbeat/current/configuration-winlogbeat-options.html
I have tried:
[{'ignore_older': '1h','name':'Application'},{'ignore_older': '1h','name':'System'},{'ignore_older': '1h','name':'Security','event_id':'-4634,-4624,-4648'}]
or
[{'ignore_older': '1h','name':'Application'},{'ignore_older': '1h','name':'System'},{'ignore_older': '1h','name':'Security','event_id':'4688'}]
But I get all messages from the server Security log.
The generated conf on the server side:
...
winlogbeat:
event_logs:
- ignore_older: 1h
name: Application
- ignore_older: 1h
name: System
- event_id: -4634,-4624,-4648
ignore_older: 1h
name: Security
...
I also tried to put the following line to the snippets part, without success.
processors:
drop_event.when.and:
equals.log_name: Security
or:
equals.event_id: 4634
equals.event_id: 4648
equals.event_id: 4624
I got this line in the config:
output:
logstash:
hosts:
- 10.XX.XX.XX:5044
shipper:
tags:
- XX
winlogbeat:
event_logs:
- ignore_older: 1h
name: Application
- ignore_older: 1h
name: System
- ignore_older: 1h
name: Security
winlogbeat:
registry_file: C:/Program Files/graylog/collector-sidecar/.winlogbeat.yml
logging:
to_files: true
files:
path: C:/Program Files/graylog/collector-sidecar
rotateeverybytes: 10485760
level: info
processors:
drop_event.when.and:
equals.log_name: Security
or:
equals.event_id: 4634
equals.event_id: 4648
equals.event_id: 4624
I also tried to add "- " before the line, but nothing changed, I can’t filter the logs.
Anyone, any idea?