Skip to content

Instantly share code, notes, and snippets.

@kmatt
Created December 20, 2024 21:42
Show Gist options
  • Save kmatt/5b3b9bedff440b71998bac0f8ec9501e to your computer and use it in GitHub Desktop.
Save kmatt/5b3b9bedff440b71998bac0f8ec9501e to your computer and use it in GitHub Desktop.
Select and browse Windows event logs with FZF
(Get-EventLog *).Log | fzf | % { Get-EventLog -LogName $_.Trim() -after (Get-Date).AddDays(-7) } | fzf
@kmatt
Copy link
Author

kmatt commented Dec 20, 2024

I'm not much of a PowerShell person, so this use of pipes may not be the most efficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment