Hi,
I was wondering if there is a simple solution to exclude duplicate lines from triggering.
Saying the same exact line appeared in the log file more than once.
Can I add the log file trigger a comparison between item.value and item.value1 (see example below)
example:
take this:
{Log File monitor Template:logrt[/var/log/syslog,@log_filter_syslog,,,skip].iregexp(@log_filter_syslog)}=1
and make it into this:
{Log File monitor Template:logrt[/var/log/syslog,@log_filter_syslog,,,skip].iregexp(@log_filter_syslog)}=1 and {ITEM.VALUE} != {ITEM.VALUE1}
Not sure about the syntax..
Is this a legal trigger?
- Moshe
I was wondering if there is a simple solution to exclude duplicate lines from triggering.
Saying the same exact line appeared in the log file more than once.
Can I add the log file trigger a comparison between item.value and item.value1 (see example below)
example:
take this:
{Log File monitor Template:logrt[/var/log/syslog,@log_filter_syslog,,,skip].iregexp(@log_filter_syslog)}=1
and make it into this:
{Log File monitor Template:logrt[/var/log/syslog,@log_filter_syslog,,,skip].iregexp(@log_filter_syslog)}=1 and {ITEM.VALUE} != {ITEM.VALUE1}
Not sure about the syntax..
Is this a legal trigger?
- Moshe
Comment