filter_pcre plugin: Added support to rewrite value lists.
authorSebastian Harl <sh@tokkee.org>
Fri, 31 Oct 2008 18:49:08 +0000 (19:49 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 2 Nov 2008 13:27:27 +0000 (14:27 +0100)
commit82cad1bd25c2d076f17888291f092c8d2859131a
tree8490f3fa67e3564d7b6fac335c8fc2e6b6540af6
parent7371e2680e5111ea23ffc7c625bc5f871fb43377
filter_pcre plugin: Added support to rewrite value lists.

For this purpose "Substitute*" options have been introduced for each regex
option. Upon a successful match, the matching substring will be replaced by
the specified replacement text.

Configuration example:

  <Plugin filter_pcre>
    <RegEx>
      Plugin "^sensors$"
      PluginInstance "^Some Weird Sensor Chip Name Prefix"

      SubstitutePluginInstance "foo"
    </RegEx>
  </Plugin>
README
src/collectd.conf.in
src/collectd.conf.pod
src/filter_pcre.c