Created
January 27, 2023 22:27
-
-
Save faststeak/8ea94af3f550d4c5a7f58fdbaf699312 to your computer and use it in GitHub Desktop.
Cribl Custom Eventbreaker for Powershell Transcripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "PowershellTranscripts", | |
"lib": "custom", | |
"rules": [ | |
{ | |
"condition": "sourcetype=='powershell:transcripts'", | |
"type": "regex", | |
"timestampAnchorRegex": "/Start time:\\s/", | |
"timestamp": { | |
"type": "format", | |
"length": 150, | |
"format": "%Y%m%d%H%M%S" | |
}, | |
"timestampTimezone": "local", | |
"timestampEarliest": "-420weeks", | |
"timestampLatest": "+1week", | |
"maxEventBytes": 9999999, | |
"disabled": false, | |
"eventBreakerRegex": "/(?=End time:\\s+\\S+).*[\\r\\n]+\\*{20,}|Windows PowerShell transcript start/gm", | |
"name": "PowershellTranscripts" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment