Ad Widget

Collapse

log monitoring escape [ in regex

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • t0m
    Junior Member
    • Oct 2018
    • 2

    #1

    log monitoring escape [ in regex

    Hello,
    I have the following regex, but it will not work. I think, that [ERROR] is the problem that it is not escaped. How can I escape it?

    Code:
    log[/logfile.log,^(?!.*?AuthenticationException).*[ERROR].*]
    Error:
    Code:
    [..] incorrect syntax near ".*]".
  • sludge3000
    Junior Member
    • Jan 2019
    • 12

    #2
    Hello t0m,

    Zabbix users PERL Compatible RegEx (PCRE), so uses the standard backslash character " \ " to escapae non alpha-nulmeric characters.

    See the manual for additional information >> https://www.zabbix.com/documentation...ar_expressions

    sludge3000

    Comment

    Working...