Splunk Search

How do I filter through my auth logs via search to only return "Accepted" or "Failed" login attempts?

sympatiko
Communicator

Hi splunkers,

I need to gather the success and failed attempts from my linux servers, but when I forward all my auth logs, it shows me so many types of logs. How can I get only those "Accepted" or "Failed" attempts?

Thanks,

Tags (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

You need to tell Splunk what you want to see. To give a complete answer, we would need to see samples of your logs, but you could start with something like this:

index=foo ("Accepted" OR "Failed") 

If you put that text into the search box you should get all the events that contain either "Accepted" or "Failed". Of course, you should change "foo" to the name of the index in which you store your log events. Once you see the desired events you can refine the search to extract the data you need to produce a report.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

You need to tell Splunk what you want to see. To give a complete answer, we would need to see samples of your logs, but you could start with something like this:

index=foo ("Accepted" OR "Failed") 

If you put that text into the search box you should get all the events that contain either "Accepted" or "Failed". Of course, you should change "foo" to the name of the index in which you store your log events. Once you see the desired events you can refine the search to extract the data you need to produce a report.

---
If this reply helps you, Karma would be appreciated.

sympatiko
Communicator

This is the solution. I never thought its that simple :grinning_face_with_big_eyes: . Thanks for your time.

Have a great day!

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...