ailog-analytics / wls-analytics

0 stars 0 forks source link

Ignore selected error types #8

Open Michalski-Piotr opened 9 months ago

Michalski-Piotr commented 9 months ago

Hello, WLS/OSB or other FMW products are logging standard messages with Error severity, Example is THREAD_DUMP dumped always during WLS shutdown sequence:


Jul 22, 2021 1:06:27,319 PM UTC> <Error> <> <BEA-000000> <THREAD DUMP from JVM taken at 'Thu Jul 22 13:06:27 2021'

2021-07-22 13:06:27
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.281-b25 mixed mode):

"Thread-1279" #1479 daemon prio=9 os_prio=0 tid=0x00007fb5c89c4800 nid=0x662 waiting on condition [0x00007fb5714b4000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
        at java.lang.Thread.sleep(Native Method)
        at weblogic.t3.srvr.ServerLifeCycleTimerThread$1.run(ServerLifeCycleTimerThread.java:156)

"Thread-1275" #1475 daemon prio=9 os_prio=0 tid=0x00007fb5b3eb1000 nid=0x65e waiting on condition [0x00007fb588054000]
   java.lang.Thread.State: RUNNABLE
        at weblogic.platform.SunVM.fileThreadDump0(Native Method)
        - locked <0x00000001c2a990d0> (a weblogic.platform.SunVM)
        at weblogic.platform.SunVM.threadDump(SunVM.java:109)
        at weblogic.platform.SunVM.threadDump(SunVM.java:142)
        at weblogic.t3.srvr.SrvrUtilities.logThreadDump(SrvrUtilities.java:46)
        at weblogic.t3.srvr.ServerLifeCycleTimerThread.run(ServerLifeCycleTimerThread.java:171)
...

Perhaps it could be good idea enhance the tool and add capability to ignore some errors patterns by tool.

For now I would be marking such patterns with "NO_ERROR" error label to ignore later:

error:
        - pattern: "THREAD DUMP from JVM taken"
          value: "NO_ERROR" 

Regards, Piotr Michalski