I am using omfile/dynaFile to split log files like this:
template(
name="apacheFilename"
type="string"
string="/var/log/web/%$.logtype%/%$YEAR%/%$MONTH%/%$DAY%/%$HOUR%/%hostname%/%msg:R,ERE,1,ZERO:^([a-zA-Z0-9_.-]+)[
:]--end%"
)
Problem is some of the error-logs grows HUGE, and I want string to be
/dev/null when size of the file is above some set limit, say 10MB. Can
this be accomplished either with template, or some other way?
--
Bj(/)rnar
_______________________________________________
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.