Reporting

Report results for each hour in a day

kvaga
Explorer

Hello! I have a report and wanna have results for each hour for the last day (last 24 hours).
I.e. it would be like this:

00:00 - 00:59 - result 1
01:00 - 01:59 - result 2
...
23:00-23:59 - result 24

And I have a dashboard where I want to see my 24 last results.
How can I do it?

0 Karma

nvanderwalt_spl
Splunk Employee
Splunk Employee

You can do the following:

|bin _time span=1h
|eval timerange = strftime(_time, "%H:%M - %H:59")
|stats count by timerange
0 Karma

woodcock
Esteemed Legend

You should use timechart span=1h to generate your tabular data and then do | head 24 at the end to only keep the last 24 hours.

0 Karma

dkeck
Influencer

Hi

A good way to get results over time is

|timechart

Something like your search earliest=-24h| timechart span=1h count
Then you can display that as chart or diagram

0 Karma

kvaga
Explorer

My data visualization type is a table. I have a dashbord and want to have there all 24 reports. I.e. a result for each hour

0 Karma

dkeck
Influencer

Can post your search query?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...