Re: [rsyslog] rsyslog error trying to resolve

2023-09-19 Thread David Lang via rsyslog
Lang On Tue, 19 Sep 2023, Steve G via rsyslog wrote: Date: Tue, 19 Sep 2023 18:37:06 + From: Steve G via rsyslog To: "rsyslog@lists.adiscon.com" Cc: Steve G Subject: [rsyslog] rsyslog error trying to resolve I am trying to pick a filename based on the IP of the machine sending the

[rsyslog] rsyslog error trying to resolve

2023-09-19 Thread Steve G via rsyslog
I am trying to pick a filename based on the IP of the machine sending the log. I have this: if ($FROMHOST-IP=="10.200.0.1") then { $template DynFile,"/var/log/remotelogs/CS Lab Head - %timestamp:::date-day%.log" } else { $template Dynfile,"/var/log/remotelogs/CS Lab Head Backup - %timestamp:::