Hello,
I'm currently moving from Graylog solution to ELK stack solution for the security logs centralization.
On Graylog, I was using Winlogbeat 7.12.1 and now I'm using Winlogbeat 8.13.2.
I've successfully translated the 7.X winlogbeat configuration file to 8.X configuration especially for the security module BUT I'm stuck at some point or maybe it is a normal behaviour.
- Old Winlogbeat 7.X config:
- name: Security
event_id: 4608, 4610, 4611, 4614, 4622, 4697, 4719, 4817, 4826, 4902, 4904, 4905, 4906, 4908, 4912
ignore_older: 48h
tags: [windowsos]
processors:
- script:
lang: javascript
id: security
file: C:\Program Files\Graylog\sidecar\module\security\config\winlogbeat-security.js
- drop_event.when:
and:
- equals.winlog.event_data.SubjectUserSid: 'S-1-5-18'
output.logstash:
hosts: ["graylog.lab.lan:5044"]
- New config
- name: Security
id: security-windows-os
event_id: 4608, 4610, 4611, 4614, 4622, 4697, 4719, 4817, 4826, 4902, 4904, 4905, 4906, 4908, 4912
ignore_older: 48h
tags: [windowsos]
processors:
- drop_event.when:
and:
- equals.winlog.event_data.SubjectUserSid: 'S-1-5-18'
output.logstash:
hosts: ["elk.lab.lan:5044"]
As the call of winlogbeat modules changed since 8.x, is there a way to says to winlogbeat agent to use the security and powershell modules ?
If I chose the output to be elastic, I can decide to use pipelines and security modules with the pipeline setting.
pipeline: "winlogbeat-%{[agent.version]}-routing"
But I want to send events to Logstash first, then writing GROK pattern to parse/add additionnal missing field OR to create fields based on certains conditions.
The documentation says
All module processing is handled via Elasticsearch Ingest Node pipelines
If Winlogbeat is sending events to Logstash or another output you need to load the ingest pipelines with thesetup
command or manually.
When I run the winlogbeat setup --pipelines, I got this error below because it tries to setup through elasticsearch protocol not logstash.
Invalid version of beats protocol: 69
When the output is logstash, how I can verify that winlogbeat is using the modules ?
Thank you