<p>Listing out the range doesn't seem to help either. Anyone use this feature?</p>
<div class="gmail_quote">On Jul 21, 2012 4:14 PM, "Evan Rempel" <<a href="mailto:erempel@uvic.ca">erempel@uvic.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In this particular case can you use<br>
<br>
"* [0123456789]"<br>
<br>
for your match. Gets around the performance concern of regex<br>
<br>
Evan.<br>
________________________________________<br>
From: <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a> [<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of T. A. Smooth [<a href="mailto:catdaaaady@gmail.com">catdaaaady@gmail.com</a>]<br>
Sent: Saturday, July 21, 2012 12:43 PM<br>
To: Syslog-ng users' and developers' mailing list<br>
Subject: Re: [syslog-ng] Glob character ranges<br>
<br>
I found the part of the doc.<br>
<a href="http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.3-guides/syslog-ng-ose-v3.3-guide-admin-en.html/index.html-single.html#reference_regexp_glob" target="_blank">http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.3-guides/syslog-ng-ose-v3.3-guide-admin-en.html/index.html-single.html#reference_regexp_glob</a><br>
<br>
I see this in docs 3.1 and up. Don't see it in 3.0 though. I am testing on 3.2.5. Has anyone gotten glob character ranges to work ? :-) I may go regex in the end. But I do have a concern about performance. So I want to be sure glob ranges are broken/unsupported or something else before I move on.<br>
glob<br>
<br>
Description: Use glob patterns (that is, wildcards and character ranges) without regular expression support. The advantage of glob patterns to regular expressions is that globs can be processed much faster. For details on glob patterns, see the glob manual page (man glob).<br>
<br>
<br>
<br>
<br>
On Fri, Jul 20, 2012 at 11:20 PM, Gergely Nagy <<a href="mailto:algernon@balabit.hu">algernon@balabit.hu</a><mailto:<a href="mailto:algernon@balabit.hu">algernon@balabit.hu</a>>> wrote:<br>
"T. A. Smooth" <<a href="mailto:catdaaaady@gmail.com">catdaaaady@gmail.com</a><mailto:<a href="mailto:catdaaaady@gmail.com">catdaaaady@gmail.com</a>>> writes:<br>
<br>
> Doing a "man glob" shows it can do ranges. And I thought i read some<br>
> Syslog-ng doc that said it could do it too?<br>
<br>
glob does support ranges, but glib's glob[1] sadly does not. If the<br>
syslog-ng docs say somewhere it does, that is unfortunately a<br>
documentation bug.<br>
<br>
[1]: <a href="http://developer.gnome.org/glib/unstable/glib-Glob-style-pattern-matching.html#glib-Glob-style-pattern-matching.description" target="_blank">http://developer.gnome.org/glib/unstable/glib-Glob-style-pattern-matching.html#glib-Glob-style-pattern-matching.description</a><br>
<br>
As an alternative, you can use regexps - a bit costier, but for a simple<br>
regex, hopefully not by much.<br>
<br>
On another hand, not supporting ranges is suprising, and in other parts<br>
of the code, syslog-ng already uses plain old glob().. it might be worth<br>
considering switching the matching code over too, at some point.<br>
<br>
--<br>
|8]<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>