Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I have the following filters in new cpanel server with rsyslog to forward log to a central log server(use rsyslog), but these filters didn't work in older cpanel server with syslog. I don't see any error after restart syslog.

if $syslogtag contains 'lfd' then @

if $syslogtag contains 'ftp' and $syslogseverity <= 4 then  @

if $syslogtag contains 'dovecot' and $syslogseverity <= 4 then  @
share|improve this question
Why is it you are expecting rsyslog configuration to work in syslogd? They are different programs and are configured differently. – Michael Hampton Jan 25 '14 at 20:30
syslogd doesn't have conditional if statements. – Danila Ladner Jan 25 '14 at 20:31
I thought they are sharing the same syntax. I didn't get error when using the same configuration. – garconcn Jan 25 '14 at 20:33
up vote 1 down vote accepted

The rsyslog team intentionally designed their configuration syntax to be as backwards compatible as possible with older BSD based syslogd implementations. As a result, many configuration options in rsyslog will be parsed without error in syslogd, however, that doesn't mean that syslogd supports the features.

As a general rule, syslogd is a very dumb application, and it supports very minimal filtering on facility and severity. That's pretty much all it does. For anything else, you will need to be using rsyslog.

Lack of error does not mean functionality is supported. Check the syslog.conf manpage for details of what (few) features are supported.

share|improve this answer
Thanks. I've figured out what to do. :D – garconcn Jan 28 '14 at 4:16

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.