Splunk Search

Search by time, then visualize in

moayadalghamdi
Path Finder

Hello Splunkers !

 

i want to write a command that shows a timeline of authentication activities as following:

index=MyIndex eventtype=Authentication user=* action=* src=* | stats count(user) by _time

the output looks like this:

moayadalghamdi_0-1611815046340.png

 

 

the thing is that the time is in seconds is shown is statistics below:

moayadalghamdi_2-1611815231462.pngmoayadalghamdi_3-1611815256977.png

 

 

i want the the command to show count  for authentication attempts by minutes not seconds.

 

 

 

Thanks ^_^

 

Labels (3)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

@moayadalghamdi 

index=MyIndex eventtype=Authentication user=* action=* src=*
| bin _time span=1m
| stats count(user) by _time

OR

index=MyIndex eventtype=Authentication user=* action=* src=*
| timechart span=1m count(user)

 

View solution in original post

bowesmana
SplunkTrust
SplunkTrust

@moayadalghamdi 

index=MyIndex eventtype=Authentication user=* action=* src=*
| bin _time span=1m
| stats count(user) by _time

OR

index=MyIndex eventtype=Authentication user=* action=* src=*
| timechart span=1m count(user)

 

moayadalghamdi
Path Finder

AWESOME !, Thanks ^_^

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...