All Apps and Add-ons

Creating comparative graphs

apalen
Path Finder

Hey Splunkers,

I want to create a graph or line chart that will show transaction total on a day vs day, week vs week, month vs month, quarter vs quarter.

the search i have started with is :

index=pfe_os_messages sourcetype="log4j" | head 10000 | rex "getSettle(?:Now|ment)Total.+?(?\d+)" | search settlement="*" | eval settlement = "$" . (settlement / 100)

Here is some example data: (scrubbed)

time - source - settlement - Raw

16:36.7 - log4j - $60 - invoice.AcquireInvoice (AcquireInvoice.foo) - getSettlementTotal(): 6000

16:36.7 log4j $60 invoice.AcquireInvoice (AcquireInvoice.foo) - getSettleNowTotal(): 6000

16:36.6 log4j $60 invoice.AcquireInvoice (AcquireInvoice.foo) - getSettlementTotal(): 6000

16:36.6 log4j $60 invoice.AcquireInvoice (AcquireInvoice. foo) - getSettleNowTotal(): 6000

16:36.6 log4j $60 invoice.AcquireInvoice (AcquireInvoice. foo) - getSettlementTotal(): 6000

16:36.6 log4j $60 invoice.AcquireInvoice (AcquireInvoice. foo) - getSettleNowTotal(): 6000

16:36.6 log4j $60 invoice.AcquireInvoice (AcquireInvoice. foo) - getSettlementTotal(): 6000

16:36.6 log4j $60 invoice.AcquireInvoice (AcquireInvoice. foo) - getSettleNowTotal(): 6000

16:36.6 log4j $60 invoice.AcquireInvoice (AcquireInvoice. foo) - getSettleNowTotal(): 6000

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi apalen,

the easiest way to get this done, is using the timewrap app http://apps.splunk.com/app/1645/

cheers, MuS

View solution in original post

MuS
SplunkTrust
SplunkTrust

Hi apalen,

the easiest way to get this done, is using the timewrap app http://apps.splunk.com/app/1645/

cheers, MuS

apalen
Path Finder

Alot of people have suggested this in many of the other post i have read. Sigh* change request here i come!!

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