[rsyslog] omfile redesign / $OutChannel will go away!

Sayan Chowdhury iamsayan at gmail.com
Wed Jun 3 19:28:24 CEST 2009


Hello Rainer,

I do use this facility. This is how I do it

$outchannel log_rotation_16,/var/private/log/logsip,
10000000,/opt/platform/bin/log_rotate.pl

if $syslogfacility == '16' and $syslogseverity <= '6' then
$log_rotation_16;precise

The log_rotate.pl perl script that I have rotates the files
and maintains a set of 10 files. When the current file reaches the 10 mb
limit, the older file is zipped and copied over to a different directory.
I am on release 3.21 now

I would definitely like to have the feature be present in the future
releases as well. I am happy as long as this feature of file size based
rotation is there and I can migrate my rules/scripts to whatever new
mechanism that get implemented.

Regards,
Sayan






On Wed, Jun 3, 2009 at 12:33 PM, Rainer Gerhards
<rgerhards at hq.adiscon.com>wrote:

> Hi all,
>
> I have begun to redesign the pretty old omfile output plugin. Large parts
> of
> this work are covered by a sponsorship.
>
> I will probably post a number of questions during the redesign process.
> Please speak up if you have any opinion on them. Once I have finished the
> new
> design, it is not likely to change during the next three to five years. For
> the same reason, please speak up now if you are desperately missing
> something
> in omfile.
>
> A concrete question I have is on the $OutChannel directive[1]. It is
> scheduled for replacement for quite a while, and now may be the time that
> it
> finally goes away. If you use $OutChannel, please let me know why.
>
> The most prominent use case is to size-limit files. $OutChannel provides
> the
> ability to execute a command when a certain file size is reached. The
> command
> may then rotate the file. After command execution, omfile checks the file
> size again. If it still is above the configured limit, this file will be
> disabled (no longer be written to until restart).
>
> If you use this for size-limiting, please let me know how you do it. Please
> also let me know if you would like to see things handled differently.
>
> Looking forward to your feedback.
>
> Thanks,
> Rainer
>
>
> [1] http://www.rsyslog.com/doc-rsyslog_conf_output.html
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
>



More information about the rsyslog mailing list