Hi All,
I have configured Winlogbeat to drop some fields from all the events using below configuration. But it seems the "drop_fields" process is not applying to the events since I can see those fields in the Kibana. Can someone plese tell me what went wrong with the config. (Drop_event proceesses are working fine though)
- name: ForwardedEvents
tags: [forwarded]
processors:
- drop_event:
when.and:
- equals.winlog.event_data.EnabledPrivilegeList: "-"
- equals.winlog.event_id: 4703
- drop_event:
when.and:
- equals.winlog.event_id: 4703
- regexp.winlog.event_data.TargetUserName: ".*$"
- drop_fields:
fields: ["agent.id", "agent.ephemeral_id", "agent.hostname", "ecs.version", "host.id", "host.os.type", "winlog.api", "event.kind"]
ignore_missing: true
- script:
when.equals.winlog.channel: Security
lang: javascript
id: security
file: ${path.home}/module/security/config/winlogbeat-security.js
- script:
when.equals.winlog.channel: Microsoft-Windows-Sysmon/Operational
lang: javascript
id: sysmon
file: ${path.home}/module/sysmon/config/winlogbeat-sysmon.js
- script:
when.equals.winlog.channel: Windows PowerShell
lang: javascript
id: powershell
file: ${path.home}/module/powershell/config/winlogbeat-powershell.js
- script:
when.equals.winlog.channel: Microsoft-Windows-PowerShell/Operational
lang: javascript
id: powershell
file: ${path.home}/module/powershell/config/winlogbeat-powershell.js
BR,
Someunguy1026