[rsyslog-notify] Forum Thread: File Size - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Sat Feb 7 00:24:33 CET 2015
User: BKJ
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25225#p25225
Message:
----------
Gretings all. Looking for help in tying to configure rsyslog to limit the
size of a particular file that is being generated (its from an ASA
Firewall). My question is how would I accomplish this when using rsyslog
templates. For example, I am using the following template:
[code:1h2oyebd]$template
RemoteHost,"/var/log/remote-syslog/%$YEAR%/%$MONTH%/%$DAY%/syslog-%fromhost-ip%.log"[/code:1h2oyebd]
I understand that I would need to make an entry in my logrotate.conf file
but just not sure how to go about this when using dynamic files...
[code:1h2oyebd]/var/log/?????????? {
missingok
size 500MB
start 0
compress
create 0600 root root
rotate 365
postrotate
/etc/init.d/rsyslog restart > /dev/null 2>&1 || true
endscript
}[/code:1h2oyebd]
Thanks in advance,
BKJ
More information about the rsyslog-notify
mailing list