Parse verbose GC log


(Malc) #1

I'm looking for assistance in attempting to parse a verbose Java GC log file using Logstash.

My JVM parameters are:
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintGCDateStamps
-XX:+PrintTenuringDistribution
-XX:+PrintHeapAtGC
-verbose:gc
-verbose:sizes

This results in a rather messy looking output file. I thought there might be a standard Grok template for this but I can't locate one if there is. I'm using Logstash 1.5.0.

Any advice or suggestions gratefully received.

Thanks.


(Sebastian Martinka) #2

You could find all patterns here: https://github.com/Mortinke/logstash-pattern


(system) #3