Getting Data In

How can I compare values from the same field at different timestamps?

slipinski
Path Finder

I trying to create a graph which will be display difference beetwen values at different time.
"2018-07-10 15:37:16,395 Mem: 683 MB GC: 436 GCT: 11475 ms"
2018-07-10 15:36:16,395 Mem: 625 MB GC: 434 GCT: 11430 ms"
"2018-07-10 15:35:16,395 Mem: 868 MB GC: 431 GCT: 11365 ms"

I would like to create a graph with GC difeferences .i.e last minute=2, 2 minutes ago=3 and so on.
Any advice?

Thanks

Szymon

Tags (2)
0 Karma

renjith_nair
Legend

Hi @slipinski,

You could use delta command if you want difference between continuous events

e.g. "your search"|delta GC  as diff | filnull value=0

Used this to extract the field, base search | rex field=_raw "^(?:[^ \n]* ){6}(?P<GC>\d+)" |table GC

---
What goes around comes around. If it helps, hit it with Karma 🙂
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...