Ad Widget

Collapse

How to define long regular expression (more than 256 chars)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aleksejs
    Junior Member
    • Dec 2013
    • 4

    #1

    How to define long regular expression (more than 256 chars)

    Hello!

    Currently we use Zabbix 2.2

    I have a really long regular expression that I need to use on log file to check for exceptions.

    The regular expression (it is for IBM WebSphere App server if anyone is interrested) is:
    Code:
    ORA-[0-9]+|SQLException|BusinessExcep E|WsServerImpl  E|ORBRas        E|webcontainer  E|AlarmThreadMo W|webapp        E|FfdcProvider  W|servlet       E|webapp        E|WSRdbXaResour E|XARminst      E|CoordinatorCo W|ExceptionUtil E|FreePool      E|WebApp        E|WebContainer  E|WebAppTransac E|ServletWrappe E|LocalTranCoor E|TimeoutManage I|WSRdbManagedC W|ConnectionEve A|TranManagerIm I|ThreadMonitor W|SASRas        W|\[FATAL\]|\[Servlet Error\]|\[Fatal Error\]|\[ERROR\]
    If I split it in say two parts and use "Result is TRUE" for them then result always is FALSE because one part always does not match.

    How do I define a working long regexp?
    Last edited by Aleksejs; 17-09-2014, 16:36.
Working...