Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a similar vein to Why is Syslog Not Writing Logs To The Designated Files?

I'm having a few problems with syslog on Ubuntu 10.0.4

I have an app which I have set to facility local7. I added the following line to /etc/rsyslog.d/50-default.conf

local7.*    /var/log/my.log

I then force rsyslogd to reload the config files as follows:

pgrep syslogd # returns 817  
sudo kill -HUP 817  

I run the following test:

$ logger hello

But the output appears in /var/log/syslog

Have I missed something? This works fine on my dev machine (Mac OS X)

share|improve this question
Additional information: According to lsof, syslog does not have my.log open. – Richard Aug 6 '12 at 21:20

But the output appears in /var/log/syslog

Right, but does it also appear in /var/log/my.log. Syslog daemons will send a matching log line to every file that has a has a matching filter. In addition to adding the entry for the new file you also need to adjust the filter for /var/log/syslog so that it does not get local7.* messages.

share|improve this answer
It does not appear in my.log at all - that is my main problem – Richard Aug 6 '12 at 21:19
BTW, it should be logger -p hello to send something to – Zoredache Aug 6 '12 at 22:22

Add "local7.none" to the line that logs to /var/log/syslog and reload syslogd (a one-line quick way is "sudo killall -HUP syslogd").

share|improve this answer
I will give that a try. THe output is not going to my.log though. – Richard Aug 6 '12 at 21:19

Problem solved:

sudo service rsyslog restart

It appears that rsyslog does not respond to HUP like syslogd does.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.