The rules configuration file

Rules configuration files reside in the directory /etc/opt/fse (on Linux systems) or in the directory %InstallPath%\etc\ (on Windows systems), and contain one or more rules, each rule consisting of the following:

A filter, based on which Log Analyzer monitors the log file specified in the general configuration file. Filters are specified as regular expressions, so that Log Analyzer matches them against the FSE log file entries.

An action or several actions that are triggered if a match occurs, such as sending an e-mail to the addresses specified in the general configuration file, dumping the filtered log entry in the temporary file specified in the general configuration file, disabling subsequent actions and re-enabling them.

IMPORTANT: The rules file must follow Python indentation syntax, and its regular expressions must follow the Python regular expression conventions. For more information, see the Python documentation.

The following is an example of a rules configuration file:

#==============================================================

#Sample Rulesfile for LogAnalyzer Version 2.3.1

#Created: 25.10.05

#Author: HP Development

#==============================================================

RULES = \

[

{

'filter': "Execution stack dump",

'action': "DisableActions()"

},

{

'filter': "End of stack dump",

'action': "EnableActions()"

},

{

'filter': "^\[.{7}\]\[E\]",

'action': "SaveCurrentLogMessage()"

},

{

'filter': "^\[.{7}\]\[E\]",

'action': "SendTrap('E')"

},

{

204 Monitoring and maintaining FSE