1

In our production environment, we have an ELK stack, which we are using for monitoring our own log files.

We also have enabled g1-gc logging:

-Xloggc:${PATH_TO_LOG}/${FILE_PREFIX}-g1-gc.log
-XX:+UseGCLogFileRotation
-XX:GCLogFileSize=10M
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails

But, we are not yet analysing these log files. We are interested in having logstash process these files, so that we can begin making use of them.

Are there any example logstash input configurations that will work with the G1GC log files?

Thanks

doc
  • 765
  • 1
  • 6
  • 24
  • 1
    I searched but could not find anything related. But you can use grok to create customized patterns: https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html – alpert May 09 '16 at 17:50
  • 1
    Yeah, I was hoping somebody out there had already done it. :) – doc May 11 '16 at 12:40
  • 1
    Maybe to make it easier for people to help you, you could update your question with a relevant portion of the log you wish to grok. – Val May 11 '16 at 12:44
  • Don't know if this is still needed, but there seems to be a project doing this on github: https://github.com/logstash-plugins/logstash-input-file – Dominik Sandjaja Oct 28 '16 at 11:40

0 Answers0