Ad Widget

Collapse

Zabbix Agent - Search inside a .log a specific expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ilaprea
    Junior Member
    • Sep 2022
    • 6

    #1

    Zabbix Agent - Search inside a .log a specific expression

    Hello eveyone this is my first post in this forum and I realy need a help.


    I need to search within a .log document using a regular expression for the term ERROR

    Im using this key log[/home/zabbix/scripts/logs/log.log,"/(ERROR)/"], but it throws me an Unsoported Key error

    Click image for larger version

Name:	image.png
Views:	195
Size:	25.8 KB
ID:	451628

    ​​

    Any clue what I'm doing wrong, I have a short time using this tool.

    Thanks in advance
    Attached Files
  • Ilaprea
    Junior Member
    • Sep 2022
    • 6

    #2
    Any idea ?

    Comment

    • Ostad
      Junior Member
      • Jul 2022
      • 10

      #3
      try to use regex or javascript in Preprocessing
      This video might help you. https://youtu.be/l1zRg34qkbM

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Try using an expression like this. log[/home/zabbix/scripts/logs/log.log,"ERROR"]​ or log[/home/zabbix/scripts/logs/log.log,"/(ERROR/)"]
        Check the log access rights of the user on whose behalf the agent is running.
        Check the settings of the Server Active option in the agent config.
        Increase the logging level on the agent and make sure that it receives a list of active checks from the server.

        Comment

        Working...