Splunk Search

Linux Successful Login

garima_chauhan
Path Finder

Hi,

I want to create a query displaying successful logins in Linux. I have /var/log/secure logs but I cannot find anything like login,authentication successful or any other related keyword in these logs. I tried with the wtmp logs as well but I will have to provide a script in that case.
My linux box does not have auth.log. Please suggest as to which log file shall I monitoror if there is an easier way of monitoring the wtmp logs in readable format.

Tags (2)
0 Karma
1 Solution

MuS
Legend

Hi garima_chauhan,

this is more likely a problem of your Linux box, then a Splunk problem. I suggest that you ask Dr. Google regarding where your Linux distribution stores this kind of information. After that you can follow the docs on how to get data into Splunk.

Remember your data must be human readable, meaning a non-binary file.

hope this helps ...

cheers, MuS

View solution in original post

MuS
Legend

Hi garima_chauhan,

this is more likely a problem of your Linux box, then a Splunk problem. I suggest that you ask Dr. Google regarding where your Linux distribution stores this kind of information. After that you can follow the docs on how to get data into Splunk.

Remember your data must be human readable, meaning a non-binary file.

hope this helps ...

cheers, MuS

MuS
Legend

no problem - feel free to accept the answer

0 Karma

garima_chauhan
Path Finder

I do not know what the issue was, but now I am able to see an entry like: Accepted password for username in the logs.
Thanks.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...