Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Pull crit events from event log #44

Open
PipeItToDevNull opened this issue Feb 19, 2022 · 5 comments
Open

Pull crit events from event log #44

PipeItToDevNull opened this issue Feb 19, 2022 · 5 comments
Labels
need method We need to find a method to accomplish this stale

Comments

@PipeItToDevNull
Copy link
Member

Likely pull then, get unique, then count

err_crit_log_MS_WINDOWS_TEST.txt

Change file to xml then import to event log

@PipeItToDevNull
Copy link
Member Author

This works, but takes a long time and I see no simple way to get viewable data

Get-WinEvent -ListLog * | % { Get-WinEvent -LogName $_.Logname -MaxEvents 500 -ErrorAction SilentlyContinue | ? { $_.Level -le '2' | Select -Unique } }

@PipeItToDevNull
Copy link
Member Author

@PipeItToDevNull PipeItToDevNull added help wanted Extra attention is needed need method We need to find a method to accomplish this and removed help wanted Extra attention is needed labels Jun 24, 2022
@TheKrol
Copy link
Contributor

TheKrol commented Jun 29, 2022

$EventLog = Get-EventLog -LogName System -EntryType Error | ConvertTo-HTML -Fragment -PreContent "<h2 class='collapsible'> Error Events</h2>" I'm not sure if this is truly what you are looking for, maybe you can point me in the right direction
image

@PipeItToDevNull
Copy link
Member Author

How long did that take to run @TheKrol ?

@TheKrol
Copy link
Contributor

TheKrol commented Jun 30, 2022

Not long at all, it was very quick. It was less than 5 seconds

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need method We need to find a method to accomplish this stale
Projects
None yet
Development

No branches or pull requests

2 participants