Continue on with filter errors
Question...is there a way to tell syslog-ng to try and continue on with configuration errors (filter)? Weird question maybe, but I was just wondering. Thank you. James
No, its not possible. Do you care to share your usecase? There might be alternative solutions. On Dec 12, 2013 4:05 PM, "Lay, James" <james.lay@wincofoods.com> wrote:
Question…is there a way to tell syslog-ng to try and continue on with configuration errors (filter)? Weird question maybe, but I was just wondering. Thank you.
James
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
Well..say I fat finger a portion of a filter: or message("[^0-9]?97\.65\.) Like leave off a quote. Thank you. James From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Balazs Scheidler Sent: Thursday, December 12, 2013 3:09 PM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] Continue on with filter errors No, its not possible. Do you care to share your usecase? There might be alternative solutions. On Dec 12, 2013 4:05 PM, "Lay, James" <james.lay@wincofoods.com> wrote: Question...is there a way to tell syslog-ng to try and continue on with configuration errors (filter)? Weird question maybe, but I was just wondering. Thank you. James ________________________________________________________________________ ______ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
"Lay, James" <james.lay@wincofoods.com> writes:
Well..say I fat finger a portion of a filter:
or message("[^0-9]?97\.65\.)
Like leave off a quote. Thank you.
In this case, I would suggest using a combination of git and syslog-ng --syntax-only: start with a known good config, and use a git pre-commit hook that does a syntax-only check, and a post-commit hook that deploys the config. A couple of short scripts, and this can be made fairly convenient too. -- |8]
Hmm, this is not really easy. Actually syslog-ng uses has own language, complete with a validating parser and lexer. Handling syntax errors there is possible, but cumbersome, not to mention the ambiguity that easily happens. Think of web browsers of old times that happily processed documents that resembled HTML and the resulting pain that occurred because of the variations in browsers. On Dec 17, 2013 5:17 PM, "Lay, James" <james.lay@wincofoods.com> wrote:
Well..say I fat finger a portion of a filter:
or message("[^0-9]?97\.65\.)
Like leave off a quote. Thank you.
James
*From:* syslog-ng-bounces@lists.balabit.hu [mailto: syslog-ng-bounces@lists.balabit.hu] *On Behalf Of *Balazs Scheidler *Sent:* Thursday, December 12, 2013 3:09 PM *To:* Syslog-ng users' and developers' mailing list *Subject:* Re: [syslog-ng] Continue on with filter errors
No, its not possible. Do you care to share your usecase? There might be alternative solutions.
On Dec 12, 2013 4:05 PM, "Lay, James" <james.lay@wincofoods.com> wrote:
Question…is there a way to tell syslog-ng to try and continue on with configuration errors (filter)? Weird question maybe, but I was just wondering. Thank you.
James
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
participants (3)
-
Balazs Scheidler
-
Gergely Nagy
-
Lay, James