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.

-- 
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/

Reply via email to