Splunk Search

How can I chart 24hr difference between Fields at exactly 7am over the last 7 days

waldez
Engager

I am capturing events every minute. Within the events, there is a continuously compounding field: "FlowTotal_Running_B".

At exactly 7am CT, I need to calculate the difference between the current value and the values 24hrs prior (this is "Daily_Total").

With this value I need to create a chart that lists the previous Daily_Totals by day.

Can someone help me out?

Thanks in Advance

0 Karma
1 Solution

somesoni2
Revered Legend

Try something like this

your base search | bucket span=1m _time | where strftime(_time,"%H:%M")="07:00" | stats values(FlowTotal_Running_B) as FlowTotal_Running_B by _time | detla FlowTotal_Running_B as Daily_Total

View solution in original post

0 Karma

somesoni2
Revered Legend

Try something like this

your base search | bucket span=1m _time | where strftime(_time,"%H:%M")="07:00" | stats values(FlowTotal_Running_B) as FlowTotal_Running_B by _time | detla FlowTotal_Running_B as Daily_Total
0 Karma

waldez
Engager

Spot on. Thanks!

0 Karma

somesoni2
Revered Legend

Glad it worked for you. Don't forget to mark it answered by clicking on "Accept"

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...