Skip to content

Commit fdb5396

Browse files
authored
chore: Added Eventcount Check Job
1 parent 7b98675 commit fdb5396

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ jobs:
2525
- name: Run Sysmon
2626
run: .\sysmon.exe -accepteula -i sysmonconfig-export.xml
2727
shell: powershell
28+
29+
- name: Check Eventcount
30+
run: '$EventCount = 0 ;Get-WinEvent -ListLog * | where {$_.RecordCount -gt 0} | foreach{$_;$EventCount = $EventCount + $_.RecordCount}|Out-Null;"Eventcount: "+$EventCount; if ($EventCount -gt 56000){ Write-Output "Too many events"; $host.SetShouldExit(1)}'
31+
shell: powershell

0 commit comments

Comments
 (0)