# Event Logs section
event_logs:
# - name: (mandatory) name of the Windows Event Log channel
# level: (optional) status type of the log (error / warn / information)
# event_id: (optional) filter only specific event IDs
# provider: (optional) filter logs by provider name
# include_xml: (optional) include raw XML payload. Default false
# ignore_missing_channel: (optional) ignore when channel doesn't exist
# xml_query: (optional) advanced filtering using XML XPath queries
# tags: (optional) custom tags for classification
# -----------------------------------------------------
# 1. Windows Application Log (default Windows log)
# -----------------------------------------------------
- name: Application
# -----------------------------------------------------
# 2. PowerShell Operational Log (tracks script execution)
# -----------------------------------------------------
- name: Microsoft-Windows-PowerShell/Operational
# Capture only specific PowerShell event IDs
event_id: [4103, 4104, 4105, 4106]
# Optional provider filter
provider: Microsoft-Windows-PowerShell
# Disable XML payload unless needed
include_xml: false
# -----------------------------------------------------
# 3. Windows System Log
# -----------------------------------------------------
- name: System
ignore_missing_channel: true
# -----------------------------------------------------
# 4. Windows Security Log
# -----------------------------------------------------
- name: Security
level: information
ignore_missing_channel: true
# -----------------------------------------------------
# 5. Custom Event Channel with XML Query Example
# -----------------------------------------------------
- name: Custom-App/Debug
service: custom_debug
source: windows_eventlog
xml_query: >
<QueryList>
<Query Id="1" Path="Custom-App/Debug">
<Select>*[System/Level=2]</Select>
</Query>
</QueryList>
# Override event level filtering
level: error
# Add custom tags
tags:
- custom
- debug