Security

Splunk search query

kajalchopade071
Path Finder

Supposed if i have huge data of users i need to check the last status of the each users Like login and logout. If user have last status as log out i need to show user info in the table format with status sign out 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| sort - _time
| dedup user
| where status="Logged out"
0 Karma

kajalchopade071
Path Finder

Thank you for help but its not working. Can you please help me

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You will have to give us some more details - what do the events you are working with look like? which fields have already been extracted? what searches are you using to get the list of users? what have you tried so far?

0 Karma

kajalchopade071
Path Finder

So previously i used last(status),stats, count, like wise 

Eg:-stats last(status)as status by sn l where status ="Failed "

0 Karma

kajalchopade071
Path Finder

Eg:-stats last(status)as status by sn l where status ="Sign out"

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You could try latest rather than last

0 Karma

kajalchopade071
Path Finder

Tried but its not showing any data. It says no results found. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

OK so imagine that I told you I wanted to get the last transaction each user had made on my system, what information would you need from me in order to be able to help me? You need to provide more information if you want to stand any chance of someone being able to help you.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...