Splunk Search

Can I use dedup to remove a duplicate value in my report and to show only the last log? Other options?

khanlarloo
Explorer

hi
i have one problem in making report. in my report result i have repeated name how can I avoid to not show the repeative name in result.
i put the screen shot herealt text
i want to show last log on status for each user without showing the repeated name . how can i do it ?

0 Karma

khanlarloo
Explorer

alt text

in the report the table status no mis repeatitive and it dosent show the last time that user login per day

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi khanlarloo,
try something like this:

your_search
| stats latest(last_logon) AS last_logon BY user status

Bye.
Giuseppe

0 Karma

HiroshiSatoh
Champion

Try this!

(your search) |streamstats count as Number by user|eval user=if(Number=1,user,"")|table user,status,"Last Log On"
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...