Ad Widget

Collapse

Create trigger matching 2 items of same log file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lcb.lucas
    Junior Member
    • Dec 2019
    • 7

    #1

    Create trigger matching 2 items of same log file

    Hi all,

    I have a master item that read a web server log file (access.log) and have many others dependent items that match parts of master item (using regex pre processing), like status code, request, client ip, and so on.

    I need create a trigger that fire matching 2 of these dependents items.

    For example: if last log line have a request: /address/test and status code: 500, fire the trigger.

    Additionally, I need to increment the condition:

    For example: if last log have the condition above and repeat for 10 times on last 5 minutes, fire the trigger.

    I already try put these 2 items together on trigger expression, but not matching the 2 conditions. The log file have a lot of 500 status code and another request address (like example above) and the trigger fired only by the 500 status code, not matching with the request address of item.

    Thanks and regards.
    Last edited by lcb.lucas; 20-03-2023, 02:54.
Working...