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 😃 . Thanks for your time.

Have a great day!

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...