Enabling/disabling automatic purging of log files

The dsadmin command can be used to enable or disable automatic purging of job log files for a project.

Enabling automatic purging of log files

Run this command to enable automatic purging of job log files that are more than a specified number of days old for a project:
dsadmin -autopurgelog TRUE -days N ProjectName
where
  • N is the number of days after which job logs are purged. For example, if you specify five days, job log files for job runs that are over five days old are purged.
  • ProjectName is the project for which automatic purging of job log files is to be enabled.
Run this command to enable automatic purging of job log files when job log files for more than a specified number of job runs exist for a project:
dsadmin -autopurgelog TRUE -runs N ProjectName
where
  • N is the number of job runs for which log files that are retained. For example, if you specify 10 job runs, job log files for the last 10 job runs are retained and all older job log files are purged.
  • ProjectName is the project for which automatic purging of job log files is to be enabled.

Disabling automatic purging of log files

Run this command to disable automatic purging of job log files for a project:
dsadmin -autopurgelog FALSE ProjectName
where ProjectName is the project for which automatic purging of job log files is to be disabled.