Reporting

How to build a saved search so it aggregates data correctly week over week?

mumblingsages
Path Finder

I'm trying to build a saved search that aggregates data week over week on Sunday to Sunday boundaries. My search is correctly aggregating the data. When I try to visualize it with Timechart the tick marks are on Monday to Monday boundaries. Is there a way to correct this behavior?

My Query

 index="closed-case-data" OR index="open-case-data" earliest="05/28/2017:00:00:00" latest=-0w@w0
    | dedup case_number 
    | timechart span=1w@w0 count by eventtype 
    | rename cases as "Cases", events as "Events", incidents as "Incidents"

ScreenCap

0 Karma

Shan
Builder

Hai,

Try this you can get the data for whole week.
In a Week starting from Sunday and ending on Monday you can get the time chart..
But not for Sunday to Sunday on Timechart..
You can get Sunday to Sunday data without Timechart in the events (eg : index=* earliest=@w0 latest=+7d@w7).

index=* earliest=@w0 latest=+7d@w7
| timechart count by host

0 Karma

mumblingsages
Path Finder

Bumping to see if anyone has any thoughts on this?

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...