[syslog-ng] Glob character ranges
T. A. Smooth
catdaaaady at gmail.com
Sat Jul 21 21:43:50 CEST 2012
I found the part of the doc.
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
> 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).
On Fri, Jul 20, 2012 at 11:20 PM, Gergely Nagy <algernon at balabit.hu> wrote:
> "T. A. Smooth" <catdaaaady at gmail.com> writes:
> > Doing a "man glob" shows it can do ranges. And I thought i read some
> > Syslog-ng doc that said it could do it too?
> glob does support ranges, but glib's glob sadly does not. If the
> syslog-ng docs say somewhere it does, that is unfortunately a
> documentation bug.
> As an alternative, you can use regexps - a bit costier, but for a simple
> regex, hopefully not by much.
> On another hand, not supporting ranges is suprising, and in other parts
> of the code, syslog-ng already uses plain old glob().. it might be worth
> considering switching the matching code over too, at some point.
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the syslog-ng