Skip to content

Instantly share code, notes, and snippets.

@collin-sanford
Created December 23, 2024 14:35
Show Gist options
  • Save collin-sanford/de60303ac247f4cf54e7400a4b231a2c to your computer and use it in GitHub Desktop.
Save collin-sanford/de60303ac247f4cf54e7400a4b231a2c to your computer and use it in GitHub Desktop.
Windows Logs via PS
# Configure win32_event_log
echo "init_config:
instances:
- type:
- Information
- Critical
- Error
- Warning
- Audit Failure
- Audit Success
log_file:
- Application
- System
- Security
- Application
- Setup
logs:
- type: windows_event
channel_path: Application
source: Application
service: Application
sourcecategory: windowsevent
- type: windows_event
channel_path: Security
source: Security
service: Security
sourcecategory: windowsevent
- type: windows_event
channel_path: System
source: System
service: System
sourcecategory: windowsevent
- type: windows_event
channel_path: Setup
source: Setup
service: Setup
sourcecategory: windowsevent" > C:\ProgramData\Datadog\conf.d\win32_event_log.d\conf.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment