On Apr 7, 2012, at 5:24 AM, Rainer Gerhards wrote: >> I just wanted to add a new answer to this. If I am reading the queue >> configuration and some online examples right, then I have to put 4-5 >> lines of queue configuration if I wanted a LinkedList queue for >> forwarding to a remote system. This really, really makes the case for >> defining a forwarding queue in a single place, as this gets very silly >> >> $WorkDirectory /var/spool/rsyslog/fwd-host1 >> $ActionQueueFileName fwdHost1 >> $ActionQueueMaxDiskSpace 1g >> $ActionQueueSaveOnShutdown on >> $ActionQueueType LinkedList >> $ActionResumeRetryCount -1 >> if this and that then @@remoteHost1:514 >> >> $WorkDirectory /var/spool/rsyslog/fwd-host2 >> $ActionQueueFileName fwdHost2 >> $ActionQueueMaxDiskSpace 1g >> $ActionQueueSaveOnShutdown on >> $ActionQueueType LinkedList >> $ActionResumeRetryCount -1 >> if one and another then @@remoteHost2:514 >> >> $WorkDirectory /var/spool/rsyslog/fwd-host1 >> $ActionQueueFileName fwdHost1 >> $ActionQueueMaxDiskSpace 1g >> $ActionQueueSaveOnShutdown on >> $ActionQueueType LinkedList >> $ActionResumeRetryCount -1 >> if more and yetmore then @@remoteHost1:514 >> >> Please please tell me I am misunderstanding and you can easily define a >> single queue on a per-host basis, no matter how many rules forward >> messages to that host.
On Apr 7, 2012, at 5:24 AM, Rainer Gerhards wrote: > You are understanding it right ;) The plan is to include named actions in v6, > which will solve this issue. Anyhow, patches are always welcome. This is perhaps the one thing I understand the least, and I'm looking forward to your changes. For now, is the best practice for this to put each queue inside a separate file, put the ActionQueue directives at the top and put every rule that forwards to that host within the same file? Like /etc/rsyslog.conf: # Include all config files in /etc/rsyslog.d/ $IncludeConfig /etc/rsyslog.d/*.conf /etc/rsyslog.d/fwd-host1.conf: $WorkDirectory /var/spool/rsyslog/fwd-host1 $ActionQueueFileName fwdHost1 $ActionQueueMaxDiskSpace 1g $ActionQueueSaveOnShutdown on $ActionQueueType LinkedList $ActionResumeRetryCount -1 if this and that then @@remoteHost1:514 if more and yetmore then @@remoteHost1:514 if trimore then @@remoteHost1:514 /etc/rsyslog.d/fwd-host2.conf: $WorkDirectory /var/spool/rsyslog/fwd-host2 $ActionQueueFileName fwdHost2 $ActionQueueMaxDiskSpace 1g $ActionQueueSaveOnShutdown on $ActionQueueType LinkedList $ActionResumeRetryCount -1 if one and another then @@remoteHost2:514 Will that work making it easy to maintain a single queue for each remote host? -- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/

