Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created December 12, 2022 14:56
Show Gist options
  • Save JohnL4/457622efd5ef4e7a81e055dfbe112c9d to your computer and use it in GitHub Desktop.
Save JohnL4/457622efd5ef4e7a81e055dfbe112c9d to your computer and use it in GitHub Desktop.
Sisense log cleanup
# Old log file cleanup
cd C:\ProgramData\Sisense\PrismWeb\Logs
ls *.log.* `
| ? {$_.Extension -match '^\.[0-9]+$' } `
| ? {$_.LastWriteTime -lt (Get-Date).AddMonths(-1)} `
| rm -vb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment