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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...