Hi,<br><br>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.<br>
<br>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).<br><br>LoadPlugin network<br>
<Plugin network><br> Listen "127.0.0.1" "25826"<br> Forward true<br> Server "<a href="http://central-loghost.mydomain.com">central-loghost.mydomain.com</a>"<br></Plugin><br>PreCacheChain "MyChain"<br>
<Chain "MyChain"><br> <Rule "rewrite_hostname"><br> <Match "regex"><br> Host ".*"<br> </Match><br> <Target "replace"><br> Host ".*" "consistent-hostname.mydomain"<br>
</Target><br> <Target "write"><br> Plugin "network"<br> </Target><br> </Rule><br></Chain><br><br> Any help in sorting this would be greatly appreciated. <br>
<br>TIA,<br><br>-Dennis Opacki<br> <a href="mailto:dopacki@gmail.com">dopacki@gmail.com</a><br>