rsyslog running in compatibility mode help

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

rsyslog running in compatibility mode help

Postby askorp on Mon Oct 13, 2008 2:43 pm

WEll i am a bit stuck again....
whenever i start rsyslog i get a message saying "rsyslogd is running in compatibility mode. Automatically generated config directives may interfer with your rsyslog.conf settings. We suggest upgrading your config and adding -c3 as the first rsyslogd option".
Now if i add -c3 to my /etc/default/rsyslog file (RSYSLOGD_OPTIONS="-c3 -r -f /etc/init.d/rsyslog.conf")
i get the message -r can only run in compatibility modes 0 to 2. Option is dissabled....
I need -r to get logs from my routers....
Any ideas?

TY:)
askorp
Avarage
 
Posts: 18
Joined: Fri Aug 08, 2008 7:19 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: rsyslog running in compatibility mode help

Postby rgerhards on Mon Oct 13, 2008 3:48 pm

Please review http://www.rsyslog.com/doc-v3compatibility.html

The -r option has changed (is gone away). Now if you turn off compatibility mode, rsyslog assumes that you have a native v3 config and for that you need to change a couple of things. The doc will tell you what and how :)
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

Re: rsyslog running in compatibility mode help

Postby prakash.akumalla on Tue Oct 14, 2008 7:07 am

Hi,

You can get the problem solved by starting the service rsyslog manually instead of giving "service rsyslog start"
you can run it manually by giving the command

/usr/local/sbin/rsyslogd -c3 -f /etc/rsyslog.conf


here /usr/local/sbin/ is applicable only if you did not give any prefix location for rsyslog while installing it.

If at all you want to run the service rsyslog as "service rsyslog start" you need to change its initialization script
/etc/init.d/rsyslog

you should modify the following option

# Source config
if [ -f /etc/sysconfig/syslog ] ; then
. /etc/sysconfig/syslog
RSYSLOGD_OPTIONS="-c3 -f /etc/rsyslog.conf"
else
RSYSLOGD_OPTIONS="-c3 -f /etc/rsyslog.conf"
KLOGD_OPTIONS="-2"
fi


You can also survive by changing the starting option in /etc/sysconfig/syslog file with out changing /etc/init.d/rsyslog file

Regards,
Prakash.
prakash.akumalla
Frequent Poster
 
Posts: 100
Joined: Thu Jun 26, 2008 2:37 pm

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron