I've seen cases where run-on quotes or braces have fooled the parser quite badly.

also, you should be aware that if you start rsyslog with rsyslogd -o /path/to/file then file will contain the result of all the includes (i.e. the way that rsyslog sees the configs) which can be very helpful in troubleshooting cases where it's not doing what you expect.

David Lang


On Mon, 29 Aug 2022, Ben Hart wrote:

I’ve never had one (that I’ve found) quite that far ahead but good to know. So 
why is it like this? Is there no way to programmatically lint these files?

*I think my issue earlier, and from yesterday were related to copy/paste from 
outside applications. *sigh* I knew better than that.. I swear!

From: David Lang <da...@lang.hm>
Date: Monday, August 29, 2022 at 3:45 PM
To: Ben Hart <ben.h...@jamf.com>
Cc: David Lang <da...@lang.hm>, Ben Hart via rsyslog <rsyslog@lists.adiscon.com>
Subject: Re: [rsyslog] Error with omfile and queue.filename syntax?
when I have this problem, I just start at the beginning, search for double
quotes and step through the entire file (don't forget included files) and then I
do it again for single quotes.

I've had the actual error be 20+ lines earlier than the first reported issue.

David Lang

On Mon, 29 Aug 2022, Ben Hart wrote:

Yup, encountered that problem before which is why I included what I hoped would 
be enough char/lines before the indicated one. Iʼve stared at this in Nano so 
long Iʼm going cross-eyed.
I donʼt have anyone else who knows the format to even ask for their eyes..

From: David Lang <da...@lang.hm>
Date: Monday, August 29, 2022 at 3:37 PM
To: Ben Hart via rsyslog <rsyslog@lists.adiscon.com>
Cc: Ben Hart <ben.h...@jamf.com>
Subject: Re: [rsyslog] Error with omfile and queue.filename syntax?
that sort of error typically means that somewhere prior to this line there are
mismatched quotes, sometimes far before.

David Lang


_______________________________________________
rsyslog mailing list
https://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