I'm updating my rsyslog.conf to v6+ format

When I change

        ...
        $ModLoad immark.so     # provides --MARK-- message capability (every 1 
hour)
        $MarkMessagePeriod     3600

        $ModLoad imklog.so     # kernel logging (may be also provided by 
/sbin/klogd),
                               # see also 
http://www.rsyslog.com/doc-imklog.html.
        $klogConsoleLogLevel 1 # set log level 1 (same as in 
/etc/sysconfig/syslog).
        ...

to

        ...
        module(load="immark")  # provides --MARK-- message capability (every 1 
hour)
        $MarkMessagePeriod     3600

        module(load="imklog" )  # kernel logging (may be also provided by 
/sbin/klogd),
                               # see also 
http://www.rsyslog.com/doc-imklog.html.
        $klogConsoleLogLevel 1 # set log level 1 (same as in 
/etc/sysconfig/syslog).
        ...


On restart I see

        ...
        Aug 18 09:50:10 tcdesktop rsyslogd-2222: command 'MarkMessagePeriod' is 
currently not permitted - did you already set it via a RainerScript command 
(v6+ config)? [try http://www.rsyslog.com/e/2222 ]
        Aug 18 09:50:10 tcdesktop rsyslogd-2222: command 'klogConsoleLogLevel' 
is currently not permitted - did you already set it via a RainerScript command 
(v6+ config)? [try http://www.rsyslog.com/e/2222 ]
        ...

@ http://www.rsyslog.com/doc-imklog.html

it says to use the current configuration directive 'ConsoleLogLevel'.

What's the syntax for using it?

I've tried both

        module(load="imklog" ConsoleLogLevel="1")
and

        $ConsoleLogLevel 1

Neither works.

Also, there's no

        http://www.rsyslog.com/doc-immark.html

at all.

How do I replace 

        $MarkMessagePeriod     3600

when using

        module(load="immark")

?

Terry
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to