Hi Ravi, On Mon, Aug 09, 2010 at 02:01:43PM -0700, Raviprakash Ramanujam wrote: > I was wondering if I could use the Tail Plugin and Regex matches to detect > strings as well, instead of numbers? (or if there are any future plans for > doing this) > > For example, > > <Match> > Regex "TYPES:(\S*)" > DSType "some type" > Type "some type" > Instance (match) > </Match>
This is not currently possible. However, I'd like to have that feature
as well but did not get around to actually implement it :-/
Anyway, I'd go for something like this:
<Match>
Regex "some regex"
...
InstanceFrom "another regex"
</Match>
The regex specified with "InstanceFrom" would be allowed to contain
multiple subexpressions. All of the respective sub-matches would be
concatenated (using dashes) to form the type instance.
Cheers,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
signature.asc
Description: Digital signature
_______________________________________________ collectd mailing list [email protected] http://mailman.verplant.org/listinfo/collectd
