X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.conf.pod;h=0ffd48540ea1e782450cce1cd1d92c27f8bd059a;hb=1aaedbca424b623f83a4f6cf837cf91574fe0e67;hp=55aa69b60345e7650781ff13ac1959529db312ba;hpb=ef7fec0c4e0bbbabb356e6a570ac6297ee06eb80;p=collectd.git diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 55aa69b6..0ffd4854 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -2787,6 +2787,42 @@ Example: =over 4 +=item B + +Replaces parts of the identifier using regular expressions. + +Available options: + +=over 4 + +=item B I I + +=item B I I + +=item B I I + +=item B I I + +Match the appropriate field with the given regular expression I. If the +regular expression matches, that part that matches is replaced with +I. If multiple places of the input buffer match a given regular +expression, only the first occurrence will be replaced. + +You can specify each option multiple times to use multiple regular expressions +one after another. + +=back + +Example: + + + # Replace "example.net" with "example.com" + Host "\\" "example.com" + + # Strip "www." from hostnames + Host "\\ + =item B Sets part of the identifier of a value to a given string.