author | Sebastian Harl <sh@tokkee.org> | |
Fri, 31 Oct 2008 18:49:08 +0000 (19:49 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 2 Nov 2008 13:27:27 +0000 (14:27 +0100) | ||
commit | 82cad1bd25c2d076f17888291f092c8d2859131a | |
tree | 8490f3fa67e3564d7b6fac335c8fc2e6b6540af6 | tree | snapshot |
parent | 7371e2680e5111ea23ffc7c625bc5f871fb43377 | commit | diff |
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>
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 | diff | blob | history | |
src/collectd.conf.in | diff | blob | history | |
src/collectd.conf.pod | diff | blob | history | |
src/filter_pcre.c | diff | blob | history |