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
- Establish a control row by setting the srLogMonControlStatus to Create
and Wait.
- Enter the name of the log file (srLogMonControlLogFile)
including its absolute path.
- 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).
- Set other parameters as required.
See the object
descriptions for details of allowed values.
- Set srLogMonControlStatus to active.
The agent commences monitoring the log file.