Hi!
I’m trying to setup rsyslog in my cloud environment, where traditional
hostnames are not really used. Therefore I would like to swap the hostname with
the name of the cluster I’m running. This is available by shell command or
environment variable.
I tried to make the following config
global(
localHostname=getenv('CLOUD_CLUSTER')
)
as well as
$LocalHostname getenv(‘CLOUD_CLUSTER’)
but without any success. I also tried composing it into a template, but that
didn’t work out very well.
Any ideas if this is possible or how I could make it work?
Kind regards,
Kristian
_______________________________________________
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.