И это всё МОЁ

Всем привет.


В rsyslog.conf добавил шаблон


$template RemoteLogs,"/var/log/remotehosts/%HOSTNAME%/%PROGRAMNAME%.log"
if $fromhost-ip ! '127.0.0.1' then -?RemoteLogs
& stop


Но


[root@centos7 ~]# rsyslogd -f /etc/rsyslog.conf -N1
rsyslogd: version 8.24.0-38.el7, config validation run (level 1), master config /etc/rsyslog.conf
rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 23: invalid character '!' in expression - is there an invalid escape sequence somewhere? [v8.24.0-38.el7 try www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 23: syntax error on token ''127.0.0.1' [v8.24.0-38.el7 try www.rsyslog.com/e/2207 ]
rsyslogd: CONFIG ERROR: could not interpret master config file '/etc/rsyslog.conf'. [v8.24.0-38.el7 try www.rsyslog.com/e/2207 ]


Что не так с кавычками?