Getting Data In

What's the best way to parse GC logs?

ddrillic
Ultra Champion

We would like Splunk to automatically parse our GC logs and we found a wiki link on configuring props.conf to do so at Community:Monitoring JVMs
HOWTO: Index your JVM garbage collection data

Should we do it at index time or search time?

Tags (2)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

From that link

On Indexers (or heavy forwarders)
props.conf

[sun_jvm]
AUTO_LINEMERGE=FALSE
SHOULD_LINEMERGE=TRUE
DATETIME_CONFIG=CURRENT
BREAK_ONLY_BEFORE=\d+\.\d+:

On search heads
props.conf

[sun_jvm]
REPORT-jvm = sun_jvm_gc

transforms.conf

[sun_jvm_gc]
REGEX = \[(Full\s)?GC\s(?<JVM_HeapUsedBeforeGC>\d+)K->(?<JVM_HeapUsedAfterGC>\d+)K\((?<JVM_HeapSize>\d+)K\),\s(?<JVM_GCTimeTaken>\d+.\d+)\ssecs\]

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

From that link

On Indexers (or heavy forwarders)
props.conf

[sun_jvm]
AUTO_LINEMERGE=FALSE
SHOULD_LINEMERGE=TRUE
DATETIME_CONFIG=CURRENT
BREAK_ONLY_BEFORE=\d+\.\d+:

On search heads
props.conf

[sun_jvm]
REPORT-jvm = sun_jvm_gc

transforms.conf

[sun_jvm_gc]
REGEX = \[(Full\s)?GC\s(?<JVM_HeapUsedBeforeGC>\d+)K->(?<JVM_HeapUsedAfterGC>\d+)K\((?<JVM_HeapSize>\d+)K\),\s(?<JVM_GCTimeTaken>\d+.\d+)\ssecs\]

ddrillic
Ultra Champion

Gorgeous @somesoni2 - you know, our sales engineer says - Always at search time - what do you think?

0 Karma

somesoni2
SplunkTrust
SplunkTrust

He must be talking about field extractions which are recommended during search-time. Above config does exactly that.

There are cases where we do index-time field extractions, e.g. for data which we want to use data model acceleration or want to use the fields in tstats. They occupy space on indexers (and will be replicated in case of indexer clusters) and will cause slightly slowness in indexing process, hence they should be avoided unless you're OK with that impact.

ddrillic
Ultra Champion

Gorgeous @somesoni2 !!!

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...