Splunk Search

How to compare same period with timewrap

faribole
Path Finder

I want to compare statistics of events between 2 weeks, day per day.

I count events for every day in real time but when I compare last day versus first day delta is not coherent
For example, if my request is launched at 10am, it compares
For today, the number of events between 0 to 10am and for the same day last week, the number of events between 10am to midnight.

I want to compare for today, the number of events between 0 to 10am and for the same day last week, the number of events between 0 to 10am

mysearch | timechart count as sendOK | timewrap w | eval delta=round((sendOK_latest_week - sendOK_1week_before)*100/sendOK_latest_week,2) ." %" | table _time delta

How to compare the same period?

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...