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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...