On Thu, 30 Jul 2015, Randall Diffenderfer wrote:
yes, the support of logrotate type file maintenance for "normal" targets i
did note.
i'm trying to figure out how big a hammer i need for the pstats output
file... :-)
apparently a full restart is needed?
yes, if you have pstats write to a file, a full restart is needed.
what I do is:
module(load="impstats" interval="60" resetCounters="on" format="legacy"
ruleset="high_p")
# define a high priority queue that will send impstats immediately rather
# than going into the main queue and possibly being delayed by other logs
ruleset(name="high_p" queue.type="FixedArray"){
set $!trusted!local!input = $inputname;
action(type="mmjsonparse")
action(type="omfile" file="/var/log/pstats-local-messages"
name="pstats_local")
action(name="send_HP" type="omfwd" target="10.1.50.87" port="514"
protocol="udp" template="structured_forwarding" queue.type="FixedArray")
}
This sends the pstats logs to a separate ruleset, with it's own queue, so it's
completely independent of anything else that's going on.
that ruleset can then write the logs out, and normal processing rules (including
HUP) work for them.
David Lang
_______________________________________________
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.