Hi,
I have an item which is searching a log file for errors. The item works fine but I want to create a second item which counts the rate at which errors are being found so that a trigger can be defined.
This is how I have set up this calculated item:
key: log.error
Function:
count(log[{$LOG_PATH},{$REGEX_APP_ERR},UTF-8,50])
So, I'm looking to count the number of lines that have been returned by the "log[{$LOG_PATH},{$REGEX_APP_ERR},UTF-8,50]" during the current update interval of log.error.
However, when I enable this the check fails with "Cannot evaluate function [count({$REGEX_APP_ERR},UTF-8,50])] item[loghost:log[{$LOG_PATH}] not found" and the item goes unsupported. It looks like the entire back end of the item being passed to count is being dropped.
Can someone help to get this working or point out a better way to do it if I'm heading down a blind alley?
Regards,
David
I have an item which is searching a log file for errors. The item works fine but I want to create a second item which counts the rate at which errors are being found so that a trigger can be defined.
This is how I have set up this calculated item:
key: log.error
Function:
count(log[{$LOG_PATH},{$REGEX_APP_ERR},UTF-8,50])
So, I'm looking to count the number of lines that have been returned by the "log[{$LOG_PATH},{$REGEX_APP_ERR},UTF-8,50]" during the current update interval of log.error.
However, when I enable this the check fails with "Cannot evaluate function [count({$REGEX_APP_ERR},UTF-8,50])] item[loghost:log[{$LOG_PATH}] not found" and the item goes unsupported. It looks like the entire back end of the item being passed to count is being dropped.
Can someone help to get this working or point out a better way to do it if I'm heading down a blind alley?
Regards,
David

Comment