Mailing List Archive

configuration file question and error message question
Hi,

I am using rsyslog 3.16.2.

When I specify the script of command to issue when a log reaches its
max size, how do I specify the command with parameters? This is what I
did:

$outchannel ch_common,/var/log/messages/1048675,\
mv -f /var/log/messages /var/log/messages.0

Do I use a quotation mark or a single quote or something else? Your
help says to specify a script but does that line except a single word
for the script, meaning it can not take parameters? To clarify, if I
have a script that is named rotate and I want to use it for multiple
logs, I would like to say "rotate /var/log/message". Is this possible?


I am getting this error message:
rsyslogd: omfwd.c:318: doTryResume: Assertion `0' failed.

What does this mean?

Thanks for your help!! I really like how rsyslogd has a lot of
configurable properties.

Scott
configuration file question and error message question [ In reply to ]
Hi,

> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of Scott Phuong
> Sent: Wednesday, July 02, 2008 5:17 AM
> To: rsyslog at lists.adiscon.com
> Subject: [rsyslog] configuration file question and error message
> question
>
> Hi,
>
> I am using rsyslog 3.16.2.
>
> When I specify the script of command to issue when a log reaches its
> max size, how do I specify the command with parameters?

The command can have EXACTLY one parameter.

> This is what I
> did:
>
> $outchannel ch_common,/var/log/messages/1048675,\
> mv -f /var/log/messages /var/log/messages.0
>
> Do I use a quotation mark or a single quote or something else? Your
> help says to specify a script but does that line except a single word
> for the script, meaning it can not take parameters? To clarify, if I
> have a script that is named rotate and I want to use it for multiple
> logs, I would like to say "rotate /var/log/message". Is this possible?

Yes, but you can not specify more than one parameter. The outchannel
code is scheduled to be superseded by something new that works along the
lines of the regular log file (just with an additional parameter).
However, until this is done, we need to live with the current
restriction.

>
>
> I am getting this error message:
> rsyslogd: omfwd.c:318: doTryResume: Assertion `0' failed.
>
> What does this mean?

Something goes really wrong ;) I have checked that assertion and there
seems to be some problem with the retry log. Can you reproduce it? If
so, can you provide a full debug log (run interactively with -dn
option)?

>
> Thanks for your help!! I really like how rsyslogd has a lot of
> configurable properties.

:)

Rainer

>
> Scott
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog