Ad Widget

Collapse

ignore certain captured log entries

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • multazim
    Junior Member
    • May 2018
    • 18

    #1

    ignore certain captured log entries

    Hi All,
    I have logrt item setup which captures log entries based on "ERROR" keyword. One of the captured log entry is as follows:

    13:01:01,952 |-ERROR in ch.qos.logback.classic.turbo.ReconfigureOnChangeFi lter@33010058 - URL [jar:file:/limdata/limih/mimTools/cronjobs/indexBuild.jar!/logback.xml]is not of type file

    I want Zabbix to ignore this captured log entry. I tried to do it pre-processing using regex but Zabbix item goes unsupported if there is an entry captured other than mentioned above.

    Is there a way to make zabbix to just ignore this line and alert on any other ERROR log entries?


  • multazim
    Junior Member
    • May 2018
    • 18

    #2
    can anyone please help?

    Comment

    • 1berto
      Senior Member
      • Sep 2018
      • 182

      #3
      Can you post your item key?
      Probably you can filter on the item key, no need of preprocess

      Comment

      • multazim
        Junior Member
        • May 2018
        • 18

        #4
        1berto

        logrt["{$LIMIHHOME}/mimTools/logs/index-build_.*","ERROR","UTF-8",100]

        ​​​​​​​

        Comment

        • Evgeniy
          Senior Member
          • May 2012
          • 157

          #5
          For example https://regex101.com/r/KTEoY7/1

          Comment

          • multazim
            Junior Member
            • May 2018
            • 18

            #6
            We are on 4.0. No plans for upgrade to 4.2. Is there a way out for 4.0?

            Comment

            Working...