Previous Topic: Log File MaintenanceNext Topic: Enable or Disable Job Logs


Configure the Agent to Clear Log Files Automatically

The agent has a housekeeping function that automatically removes all existing files with the extension .log that reach a certain size. You can configure the agent to automatically clear the log files by modifying the agentparm.txt file.

To configure the agent to clear log files automatically

  1. Open a PASE terminal session.
  2. Change to the agent installation directory.
  3. Stop the agent.
  4. Open the agentparm.txt file located in the agent installation directory.
  5. Edit the following parameter to specify the maximum log size (in bytes).
    log.maxsize
    

    When the log file exceeds the specified size, the agent archives it and starts a new log file.

  6. Edit the the following parameter to specify the log archiving options:
    log.archive
    

    Note: The agent ignores the log.maxsize value if the log.archive parameter is set to 3. The agent does not create an archive file, but appends new log entries to the current logs.

  7. Edit the following parameter to specify the types of logs and number of logs to generate:
    log.level
    

    Note: Level 2 is adequate for general, initial testing, and level 0 is adequate for production unless problems arise requiring more details for troubleshooting.

  8. Save and close the agentparm.txt file.
  9. Start the subsystem that runs the agent if it has stopped.
  10. Start the agent.

    The agent is configured to clear log files automatically.

    Note: In some combinations of log.level and log.archive settings, a new file is generated (runner_plugin_transmitter_queue.log).

More information:

Agent Parameters in the agentparm.txt File