the only thing that rsyslog can change without a restart is to use table_lookup (with it's ability to reload the table)

everything else, including using environment variables, ould requre a restart when it changes. Even DNS lookups need to be cached to some extent to avoid insane numbers of lookups to DNS servers.

David Lang

On Thu, 20 Feb 2020, Arpad Miskolczi via rsyslog wrote:

Date: Thu, 20 Feb 2020 23:36:39 +0100
From: Arpad Miskolczi via rsyslog <[email protected]>
To: [email protected]
Cc: Arpad Miskolczi <[email protected]>
Subject: Re: [rsyslog] using backticks with echo or cat for target ip?

Actually, I forward to two seperate machines, and want the ability to stop forwarding whenever I want. So I thought, that if I put the ip's of the receivers into files, and want to stop one, I just change the ip in the file without changing the config file itself.

Am 20.02.20 um 21:28 schrieb dgermanrsysl--- via rsyslog:
What are you trying to overcome/achieve.
Perhaps using a hostname rather than IP address would help you.
You could define the hostname and IP in /etc/hosts. This would not require restarting rsyslog when it changes. You might otherwise consider using a DynamicDNS server to resolve the address.

On 2/20/20 2:04 PM, David Lang via rsyslog wrote:
no, the target cannot be a variable.
David Lang

Date: Thu, 20 Feb 2020 09:41:27 -0700 (MST)
From: Arp via rsyslog <[email protected]>
Cc: Arp <[email protected]>

I am trying to have config that does not have the target ip for omfwd
hardcoded (although I probably need to restart the service everytime I want
it to send to a new ip).
...
_______________________________________________
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.
_______________________________________________
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.

_______________________________________________
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.

Reply via email to