> -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of Jo Rhett > Sent: Friday, April 06, 2012 1:59 AM > To: rsyslog-users > Subject: Re: [rsyslog] forwarding server template? > > On Apr 5, 2012, at 1:22 AM, Rainer Gerhards wrote: > >> The issue is the repeating of identical information throughout the > >> rsyslog.conf. With a few hundred lines, and dozens of references to > >> the same loghost, same port, etc it becomes somewhat silly to make > >> changes. It would be very useful to be able to define the hostname, > >> port and potentially the format in a single place. (as syslog-ng > >> allows) > > > > This dynamic hostname is not supported. Actually, it's the first time > someone > > asks, but I have to admit I see some value in it. > > > > However, is > > s/oldname/newname/g > > such a problem? > > > 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.
You are understanding it right ;) The plan is to include named actions in v6, which will solve this issue. Anyhow, patches are always welcome. Rainer _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/

