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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...