There was a problem with the guide (now corrected): it's {}, not []HTH Rainer El jue., 6 dic. 2018 a las 21:28, Henry Law (<[email protected]>) escribió: > > rsyslogd 8.32.0 running on Ubuntu server 18.10.1. I have a simple > rsyslogd configuration which collects all log messages from a single > host and puts them into a particular log file. I have a configuration > file called /etc/rsyslog.d/55-sirius.conf which contains this: > > # Route rsyslog messages from Sirius to a file > If $fromhost-ip == “192.168.1.254“ then [ > Action (type=”omfile” File=”/var/log/sirius/syslog”) > ] > > rsyslogd fails withe following message in the log: > > rsyslogd[1045]: error during parsing file /etc/rsyslog.d/55-sirius.conf, > on or before line 2: invalid character '.' in expression - is there an > invalid escape sequence somewhere? [v8.32.0 try > http://www.rsyslog.com/e/2207 ] > > But the syntax of 55-sirius.conf is exactly as described in the "Newbie > guide to rsyslog" (https://www.rsyslog.com/newbie-guide-to-rsyslog/), > where the example runs: > > If $fromhost-ip == “172.19.1.135“ then [ > Action (type=”omfile” File=”/var/log/network1.log”) > ] > > I expect it's me; it usually is. But I'm baffled as to what I've done > wrong; can someone help me diagnose and fix this? > > -- > Henry Law n e w s @ l a w s h o u s e . o r g > Manchester, England > > _______________________________________________ > 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.

