Directory Wizards Inc.

Solutions For Your Directory Needs

RSS feed
Add to Google


 

Categories

Knowledgebase

Log File Management

Category:Troubleshooting

Last Updated:2012-01-20

 

Download PDF version

 

The primary shell.exe program includes an option to clean-up old log files by deleting all but the most recent logs.  You may add the Shell -cleanlogs command to your automated script to regularly run and keep the number of log files limited as desired.

Command Line cleanup (may be scheduled)

By default, CleanLogs runs against ALL connections and 30 days worth of logs will be saved. The rest will be deleted:

shell --cleanlogs

Additional optional parameters allow you to configure the number of days to keep, as well as run clean logs against a single specific connection:

shell --cleanlogs [--days x] [Connection Name]

Optional parameters:

--days
Default is to keep 30 days worth of logs. You may use the --days parameter to increase or decrease the number of days worth of logs to keep.

Connection Name
Default, if you do not specify a connection name, will clean ALL connections logs. Specify a connection name to run clean logs against an individual connection.