# Parse verbose GC log

**URL:** <https://discuss.elastic.co/t/parse-verbose-gc-log/2714>\
**Category:** Logstash\
**Created:** [June 15, 2015, 4:21pm UTC](https://discuss.elastic.co/t/parse-verbose-gc-log/2714 "2015-06-15T16:21:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MalcyB](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MalcyB](https://discuss.elastic.co/u/MalcyB)\
**Post date:** [June 15, 2015, 4:21pm UTC](https://discuss.elastic.co/t/parse-verbose-gc-log/2714/1 "2015-06-15T16:21:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mortinke](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mortinke](https://discuss.elastic.co/u/Mortinke)\
**Post date:** [September 16, 2015, 12:35pm UTC](https://discuss.elastic.co/t/parse-verbose-gc-log/2714/2 "2015-09-16T12:35:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 5:28am UTC](https://discuss.elastic.co/t/parse-verbose-gc-log/2714/3 "2017-07-06T05:28:57Z")

</div>


