DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes, you could just write a script to actually do the grepping itself for failed/illegal login attempts but then that defeats the purpose of logwatch as I want that to parse the logs for me.
I compiled logwatch from source and looks like it's following stupid redhat's directory structure for logs. Grrr..
care to share? I'm looking to do the same - both successful and failed ssh attempts.
If your distro is redhat, it should work out of the box as the sshd service looks for /var/log/secure for failed ssh attempts. My log file was /var/log/auth.log so I had to change /etc/log.d/conf/logfiles/secure.conf to point to /var/log/auth.log. That's pretty much it and just add the ssh service into logwatch.conf.
Oh yea, /etc/log.d/ was where I placed my logwatch files/scripts. Change that path to whatever yours is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.