[collectd] Remind: Does regex match end of a line?

Denis Melnikov mdb65 at tu.komus.net
Mon Aug 23 12:57:46 CEST 2010


Sebastian, thank you for your reply.
I use FreeBSD 7.0-RELEASE.
No errors in logs.

Denis

> -----Original Message-----
> From: Sebastian Harl [mailto:sh at tokkee.org] 
> Sent: Monday, August 23, 2010 2:51 PM
> To: Denis Melnikov
> Cc: collectd at verplant.org
> Subject: Re: [collectd] Remind: Does regex match end of a line?
> 
> Hi Denis,
> 
> On Fri, Aug 20, 2010 at 02:15:13PM +0400, Denis Melnikov wrote:
> > Using tail plugin I want to speed up regex matching via anchoring to
> > end-of-line with '$'.
> > But as I can see, the plugin evaluates '$' sign as 
> something else, maybe
> > literal '$'.
> > Is it possible to use '$' sign as anchor to end-of-line?
> > I.e.:
> > 
> > Regex " 200 ([0-9]+\\.[0-9]+)$"
> 
> Hrm, that *should* work. The tail plugin uses POSIX extended regular
> expressions and the only thing to be handled differently is to escape
> backslashes (as you did). Do you see any errors in the logs? What
> operating system / libc do you use?
> 
> Cheers,
> Sebastian





More information about the collectd mailing list