Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2013
rsyslog not logging logger messages
On a openSUSE 12.1 box I tried to customize the file to log sshd-related messages. I made the mistake of installing syslog-ng when rsyslog was already installed because I first found instructions about doing it with syslog-ng.
When I found how to do it in rsyslog, I removed syslog-ng but now I've got a weird situation. After some debugging and tons of google, the simplest problem case I could reproduce is this:
If I run rsyslog with:
/sbin/rsyslogd -c 5 -f /etc/rsyslog.conf
logger "hello world"
systemctl start syslog.service
The rsyslogd command I got it from looking at the output of:
systemctl status syslog.service
Thanks in advance!
- Join Date
- May 2011
hello and welcome!
the first thing i'd try is looking at how rsyslog is running, when systemctl starts it, and compare that to how u manually start it. so start it via systemctl, then do:
ps auxww|grep syslog
perhaps it is not reading the same conf file, or is passing some other parameter.
also, in case u are running as a reg user, does the logger command not work as root?