Hello All,
My question is regarding auth.log file under ubuntu20.04
After surfing on google, I read some threads but could not have found matching answer for my case.
Some says "you can use journal-ctl command to see ssh logs" but what I'd like to do is to save all ssh actions into auth.log file.
I also check rsyslog.conf under etc directory but can't find an answer.
Please let me know how to fix it.
root@tester:/var/log# ls -la auth.log
-rw-r----- 1 syslog adm 0 May 17 19:09 auth.log
systemctl status rsyslog returns:
● rsyslog.service - System Logging Service
Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2023-05-13 20:46:29 UTC; 3 days ago
TriggeredBy: ● syslog.socket
Docs: man:rsyslogd(8)
https://www.rsyslog.com/doc/
Main PID: 942 (rsyslogd)
Tasks: 4 (limit: 115717)
Memory: 20.4M
CGroup: /system.slice/rsyslog.service
└─942 /usr/sbin/rsyslogd -n -iNONE
nano /etc/rsyslog.d/50*conf
I can see below lines inside the 50*conf file.
You are configured the same way I am (although I am on Red Hat).
Which user is running rsyslogd? On my system, rsyslogd is running as root, and the file is owned by root.
Your file is owned by 'syslog'. Is syslog the user that started rsyslog?
The daemon started on May 13, and the timestamp on the file id May 17th. It may have rotated off. Is there a file named auth.log* (or how ever log rotate is configured.) Maybe the old logs aren't saved?
authlog only updates with an authentication event (logging in) is it possible there has been no authorization activity?