I accidentally deleted /var/log/syslog, thinking that the system would automatically recreated it (it doesn't).
touch /var/log/syslog and restarted rsyslog, but the system still isn't logging anything. I also restarted the entire server to no avail.
the output of
ls -l /var/log/syslog is
-rwxrwxr-x 1 root root 0 Oct 27 13:16 syslog
How can I get the system to start loggging to syslog again?
NOTE TO FUTURE READERS
restarting rsyslog did indeed fix the issue. The reason it didn't work for me the first time was because I created the file "syslog" using
The solution was delete
/var/log/syslog. Then run
sudo service rsyslog restart
TLDR; DONT CREATE THE FILE YOURSELF. DELETE syslog, then restart rsyslog (which will create syslog for you). Problem solved.