Network Management
Delete or move SolarWinds log files on any Orion server
This article describes how to delete or move old SolarWinds log files in your system if you experience drive space issues.
First published date
Last published date
Overview
Product section
Cause
Resolution
Delete logs
- Launch the command prompt as administrator
- Run either or both of the following commands to delete log files.
To remove current logs only:-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. for /f "delims=" %F in ('dir C:\ProgramData\Solarwinds /s /b ^| findstr /ie "\.log" ^| findstr /iv "RabbitMQ" ') do del /F /Q /S "%F"
To remove old logs only:-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. for /f "delims=" %F in ('dir C:\ProgramData\Solarwinds /s /b ^| findstr /ie "\.log\..*" ') do del /F /Q /S "%F"
Move logs
- Launch the command prompt as administrator
- Run either or both of the following commands to move log files.
To move current logs only:-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. robocopy C:\ProgramData\Solarwinds C:\destination_folder *.log /XD RabbitMQ /S /MOV
To move old logs only:-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. robocopy C:\ProgramData\Solarwinds C:\destination_folder *.log.* /XF *.log /S /MOV
Automate log management tasks
- Open the task scheduler as an administrator.
- Create a new Basic Task.
- Enter the name of the task, and create a schedule.
- Choose Start a program, and browse for C:\Windows\System32\cmd.exe.
- In the Add arguments field, enter one of the commands from Delete logs or Move logs section.
- Complete the wizard.