User's Manual
HP StorageWorks File System Extender Software user guide 205
Filters
The filter is activated, that is, the action specified as the second part of the rule is triggered when the
substring defined by the regular expression matches the log message currently analyzed.
The filter part of a rule can also contain an exclude statement thus allowing for an exclusion of log
messages that match the filter specified by the filter statement. Log messages that match both filter
statements (the filter and the exclude statement) do not trigger actions.
The following is an example of a rule utilizing the exclude statement:
Actions
The following actions are available:
'filter': ".*",
'exclude': "(^\[.{7}\]\[E\]|End of stack dump|^$)",
'action': "SaveCurrentLogMessage()"
},
{
'filter': ".*So what.*",
'action': "MailLogMessages()"
},
{
'filter': "Critical",
'action': "MailCurrentLogMessage('Critical message found')"
},
{
'filter': "Critical",
'action': "SendTrap('C')"
}
]
{
'filter': ".*error.*",
'exclude': ".*No errors found.*",
'action': "MailLogMessages()"
}
Action Name Description
MailLogMessages() The filtered log messages are sent by e-mail to the addresses defined in
the general configuration file.
MailLogMessages('sbj') The filtered log messages are sent by e-mail to the address defined in the
general configuration file with the subject sbj.
MailCurrentLogMessage('sbj') The current filtered log message is sent by e-mail to the address defined
in the general configuration file with the subject sbj.