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
 [email protected]
_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to