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
Revered Legend

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
Revered Legend

Try like this

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

gcusello
Legend

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!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...