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

Sergei Zhirikov sfzhi at yahoo.com
Tue Jun 30 11:11:14 CEST 2009


Rainer Gerhards wrote:
> Hi all,
> 
> 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
> 

Hi Rainer,

I do use $OutChannel for size-limiting and it would be a disappointment 
to me if that feature disappeared. As a matter of fact, it was the main 
reason why I chose to use rsyslog in the first place.

I find the "classic" way of using cron+logrotate+SIGHUP quite ugly and 
in some cases unacceptable. I have a small home gateway with read-only 
main file system, so all the log files are written into a tmpfs mount. 
It happened a couple of times that some misconfigured or malfunctioning 
software produced a lot of logging and filled in most of the available 
RAM before the next scheduled run of logrotate. In this situation the 
size limiting feature of rsyslog is exactly what I need in order to be 
able to avoid such this kind of problems.

Kind regards,
Sergei.




More information about the rsyslog mailing list