[rsyslog] setting the hostname

Joe Williams joe at joetify.com
Tue Dec 14 01:44:33 CET 2010


David,

Thanks but that won't work. I want to enforce the hostname that rsyslog is started with in case the hostname changes at some point.

-Joe



On Dec 13, 2010, at 1:20 PM, david at lang.hm wrote:

> On Mon, 13 Dec 2010, Rainer Gerhards wrote:
> 
>> Unfortunately, this is not possible...
> 
> however, what you can do is to change the template to put any string you want instead of %hostname%, that will have the same effect.
> 
> David Lang
> 
>> Rainer
>> 
>>> -----Original Message-----
>>> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
>>> bounces at lists.adiscon.com] On Behalf Of Joe Williams
>>> Sent: Monday, December 13, 2010 9:04 PM
>>> To: rsyslog-users
>>> Subject: [rsyslog] setting the hostname
>>> 
>>> 
>>> List,
>>> 
>>> I would like to statically set the hostname (don't use the actual
>>> hostname of the system) that rsyslogd uses for a node in the
>>> configuration or as an argument to the rsyslogd command on that node. I
>>> didn't immediately see a way to do this in the docs, is this possible?
>>> 
>>> Thanks.
>>> 
>>> -Joe
>>> 
>>> 
>>> 
>>> Name: Joseph A. Williams
>>> Email: joe at joetify.com
>>> Blog: http://www.joeandmotorboat.com/
>>> Twitter: http://twitter.com/williamsjoe
>>> 
>>> _______________________________________________
>>> rsyslog mailing list
>>> http://lists.adiscon.net/mailman/listinfo/rsyslog
>>> http://www.rsyslog.com
>> _______________________________________________
>> rsyslog mailing list
>> http://lists.adiscon.net/mailman/listinfo/rsyslog
>> http://www.rsyslog.com
>> 
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com

Name: Joseph A. Williams
Email: joe at joetify.com
Blog: http://www.joeandmotorboat.com/
Twitter: http://twitter.com/williamsjoe



More information about the rsyslog mailing list