Splunk Search

How to create a timechart with actual values (NOT aggregation)

chandukreddi
Path Finder

Hello Team,

from below words I would like to get only value 497 and that has to be timechart with actual value, how do I do that?

G1 Young Generation GC in 497ms.

Log print:

WARN [Service Thread] 2020-03-26 16:45:30,391 GCInspector.java:282 - G1 Young Generation GC in 497ms. G1 Eden Space: 683671552 -> 0; G1 Old Gen: 2290144840 -> 2009072128; G1 Survivor Space: 67108864 -> 62914560;

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Extract the value using rex.

... | rex "GC in (?<GCtime>\d+)"

Use the values function to display all GCtime values that were seen in the given interval.

... | timechart span=1s values(GCtime) as GCtime by host
---
If this reply helps you, Karma would be appreciated.
0 Karma

chandukreddi
Path Finder

great it works!

But we have multiple hosts, so I would like to get individual line per Host. can you please help me?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

See the updated answer.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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 ...