[collectd] Filter chains and network forwarding
Dennis Opacki
dopacki at gmail.com
Thu Jun 24 23:42:19 CEST 2010
Hi,
I'm hoping to get some help with a filter chain question. I'm deploying a
collectd proxy/aggregator, using the network plugin. While I'm able to
successfully forward data I receive, I'd like to be able to rewrite the
hostname field on messages I receive from the network, before sending them
on to another host.
I've included a sample config file I've been working with. Can filters even
be applied to forwarded messages? I'm using collectd 4.10.0.87.geda2991 on
Ubuntu sid (2.6.21.7-2 kernel).
LoadPlugin network
<Plugin network>
Listen "127.0.0.1" "25826"
Forward true
Server "central-loghost.mydomain.com"
</Plugin>
PreCacheChain "MyChain"
<Chain "MyChain">
<Rule "rewrite_hostname">
<Match "regex">
Host ".*"
</Match>
<Target "replace">
Host ".*" "consistent-hostname.mydomain"
</Target>
<Target "write">
Plugin "network"
</Target>
</Rule>
</Chain>
Any help in sorting this would be greatly appreciated.
TIA,
-Dennis Opacki
dopacki at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100624/743fa38f/attachment.htm
More information about the collectd
mailing list