LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Location of sudo log in openSUSE 13.2 (https://www.linuxquestions.org/questions/linux-newbie-8/location-of-sudo-log-in-opensuse-13-2-a-4175556902/)

gacanepa 10-22-2015 02:51 PM

Location of sudo log in openSUSE 13.2
 
Hi everyone,

The subject of this thread is self-explanatory. I know that I can find the logs for sudo in /var/log/secure and /var/log/auth.log on CentOS and Debian, respectively. The thing is, I have begun to work on openSUSE 13.2 and can't seem to be able to find the sudo log. The sudoers file does not mention anything either.

Any ideas?

John VV 10-22-2015 04:09 PM

opensuse a long time ago moved to a journal log

have a look at
Code:

su -
systemd-journalctl --help

https://activedoc.opensuse.org/book/...systemd-daemon
and
https://activedoc.opensuse.org/book/...stem-log-files

TobiSGD 10-22-2015 06:56 PM

On Arch, which is also using systemd-journald the command to get sudo specific log entries is
Code:

journalctl -t sudo
Should be similar on openSuse.

gacanepa 10-22-2015 08:54 PM

Thank you guys!
Both of your answers pointed me in the right directorion, that is, look into journalctl for the sudo log, and it was indeed there.
Just a small note: at least in openSUSE 13.2, journalctl does not have a -t option, so I just did
Code:

journalctl | grep sudo
as a quick inspection and that did the trick.
I am marking these thread as solved and your replies as helpful. Thanks again!


All times are GMT -5. The time now is 01:11 AM.