Cireson.Platform.Host is eating up space
Thanks for the help!
Best Answers
-
Brian_Wiest Customer Super IT Monkey ✭✭✭✭✭Just delete them.It is one of the files I add to a daily job that searches out all the logs files generated from SCSM,IIS,Cireson apps. and deletes anything older than 30days.6
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭Brian is right. You can safely delete those log files.5
-
Brian_Wiest Customer Super IT Monkey ✭✭✭✭✭If at all interested here is a script for keeping the environment "clean".Couple notes.All Workflow logging from SCSM/Cireson (ie Notify Analyst logging and Asset Import) I have going to the local server E:\Logging\[Workflow Name]Also I have a weekly script that runs in the middle of the night that stops all SCSM services and the portal. I have it rename the webconsole.log and cachebuilder.log so the size doesn't balloon on me. (Which it has in the past)Make note of the -Recurse on some paths vs others. Some of the Cireson paths have files in nested folders that need to remain.This is setup via daily task manager. Helps make use I don't run out of file space just for logging files.HTH$scsmServers = @("server-scms131","server-scms132","server-scms133","server-scms134","server-scms135","server-scms136","server-sccp131","server-sccp132","server-sccp133","server-sccp134","server-sccp135","server-scwk131","server-scwk132")
$portalServers = @("server-sccp131","server-sccp132","server-sccp133","server-sccp134","server-sccp135")
$limit = (Get-Date).AddDays(-29)
foreach ($server in $scsmServers)
{
$path = "\\$server\E$\Logging\"
Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
}
foreach ($server in $portalServers)
{
$path = "\\$server\C$\inetpub\logs\LogFiles\"
Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
}
foreach ($server in $portalServers)
{
$path = "\\$server\C$\ProgramData\Cireson.Platform.Host\"
Get-ChildItem -Path $path -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
}
foreach ($server in $portalServers)
{
$path = "\\$server\C$\inetpub\CiresonPortal\Logs\"
Get-ChildItem -Path $path -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
}
1
Answers
$portalServers = @("server-sccp131","server-sccp132","server-sccp133","server-sccp134","server-sccp135")
$limit = (Get-Date).AddDays(-29)
foreach ($server in $scsmServers)
{
$path = "\\$server\E$\Logging\"
Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
}
foreach ($server in $portalServers)
{
$path = "\\$server\C$\inetpub\logs\LogFiles\"
Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
}
foreach ($server in $portalServers)
{
$path = "\\$server\C$\ProgramData\Cireson.Platform.Host\"
Get-ChildItem -Path $path -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
}
foreach ($server in $portalServers)
{
$path = "\\$server\C$\inetpub\CiresonPortal\Logs\"
Get-ChildItem -Path $path -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
}
To clarify, are you using Task Scheduler on the server or some other method of running the script?