I have a logfile that is empty or contains either "Error" OR "Warning" but never both. I have an item set up that checks for "Error" or "Warning":
vfs.file.regexp[c:\checks\log.txt,"Error|Warning",,,,]
This correctly returns "Error" or "Warning" as result.
Is it possible to have ONE trigger for this item and set the severity depending on the value that is returned (High for "Error", Warning for "Warning")?
vfs.file.regexp[c:\checks\log.txt,"Error|Warning",,,,]
This correctly returns "Error" or "Warning" as result.
Is it possible to have ONE trigger for this item and set the severity depending on the value that is returned (High for "Error", Warning for "Warning")?