Monitoring log files

The subagent enables you to monitor lines of text in a log file. It can be set up to filter lines of text that have been appended to a log file. The subagent periodically monitors the file at an interval set by the update interval object (srLogMonControlUpdateInterval).

About this task

To monitor log files:

Procedure

  1. Establish a control row by setting the srLogMonControlStatus to Create and Wait.
  2. Enter the name of the log file (srLogMonControlLogFile) including its absolute path.
  3. Specify a filter expression (srLogMonControlFilter) that identifies the log file message that you wish to monitor.

    The default expression is .*(see Regular expressions for more details).

  4. Set other parameters as required.

    See the object descriptions for details of allowed values.

  5. Set srLogMonControlStatus to active.

    The agent commences monitoring the log file.