Splunk Search

How to get Dedup results by specific date?

HWalk1
Explorer

So I am looking for the number of a specific event (sign-ins)  deduped by a user, which is simple. The challenge I am having is that I need the results deduped by date. So if i am looking at a weeks worth of data I would like to see how many sign ins happened each day deduped by user. So, each user would only appear once each day but could appear multiple times over the course of the week depending. 

Does this make sense? Please let me know if I can clarify anything and thanks in advance for any/all help. 

Labels (3)
Tags (2)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try like this

Your current search with field User and _time
| timechart span=1d dc(User) as UserLogins

View solution in original post

HWalk1
Explorer

@somesoni2 & @gcusello Thanks! This is exactly what I needed. 

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Try like this

Your current search with field User and _time
| timechart span=1d dc(User) as UserLogins

gcusello
SplunkTrust
SplunkTrust

Hi @HWalk1,

did you tried timestamp command?

so if you want to group the login events on a windows system by user anbd by day, you could try something like this:

index=wineventlog EvenCode=4624
| timechart span=1d count BY user

 Ciao.

Giuseppe

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 ...