Ad Widget

Collapse

Zabbix log monitoring for multiple files with wildcard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ursicm
    Junior Member
    • Nov 2025
    • 1

    #1

    Zabbix log monitoring for multiple files with wildcard

    In Zabbix, I want to monitor logs. I have 30 logs in a shared location. I want to search for a specific string in all of them, and when an error occurs, I would like to receive a notification with the exact name of the log in which the string appeared.

    I know how to create an item and a trigger when I monitor a single specific log, for example:
    C:\Users\aaa\log\Event_a1.log
    But I can’t manage to set up monitoring that would check all logs in this directory (e.g., C:\Users\user\Downloads\log\Event_*.log).

    Is it even possible to do this?

    Thank you in advance for your reply. Meta
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    All logs in one directory with one item is not possible. Your item is looking for a last modified logfile that matches the name pattern you give... one file.. not all that match...

    You need to create item per logfile. Use discovery and item prototypes to get it done in one run...

    Comment

    Working...