Splunk Search

Find out Number of Authentications per hour

mukeshb
Explorer

We have logs coming in from an authentication system and we would like to chart out the number of authentications by Hour of the day (or Hours of the day) for the last x number of days just to check the peak authentication times.

The query we have at the moment is
sourcetype=abc action=success | chart count(user) by date_hour

but the result is:
Hour...... Count
0............... 2
1...............12
2...............13
3...............8
......
23.............. 6

How can I get a result like:
Hour ....................Count
00:00- 00:59............2
1 :00- 1:59..............12
2:00- 2:59 ............. 13
3:00- 3:59............8
......
23:00- 23:59............ 6

Would it be possible to get a table or chart like above?

Tags (1)
0 Karma

woodcock
Esteemed Legend

Is this close enough?

sourcetype=abc action=success | bucket _time span=1h | stats count by _time
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...