Skip to content

Instantly share code, notes, and snippets.

@faststeak
Created January 27, 2023 22:27
Show Gist options
  • Save faststeak/8ea94af3f550d4c5a7f58fdbaf699312 to your computer and use it in GitHub Desktop.
Save faststeak/8ea94af3f550d4c5a7f58fdbaf699312 to your computer and use it in GitHub Desktop.
Cribl Custom Eventbreaker for Powershell Transcripts
{
"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