Hi,<div><br><div>What i wish to do is to have one collectd server receiving data from a set of other servers write it on disk as rrd as is and change the hostname before writing the value to the network plugin to be cnsumed by yet another collectd.</div>

<div>As a first step I first tried to change the name of the data written locally to test it with this:</div><div><br></div><div><div>&lt;Chain &quot;PostCache&quot;&gt;</div><div>  &lt;Rule &quot;add_infra_name&quot;&gt;</div>

<div>    &lt;Target &quot;replace&quot;&gt;</div><div>      Host &quot;^&quot; &quot;something-&quot;</div><div>    &lt;/Target&gt;</div><div>    &lt;Target &quot;write&quot;&gt;</div><div>      Plugin &quot;rrdcached&quot;</div>

<div>    &lt;/Target&gt;</div><div>    </div><div>    Target &quot;stop&quot;</div><div>  &lt;/Rule&gt;</div><div>&lt;/Chain&gt;</div><div><br></div><div><br></div><div>In a way it works but what happens is that the rule is matched again and again and i have rrd named &quot;something-something-something-xxxxxx&quot; and it goes on and on xD</div>

<div>Am I taking the wrong path or is there anything missing in my rule ? I tried to add a match to only pick hostname without &quot;something-&quot; in its name but I did not found a way to do this since negative look ahead does not seems to be supported in regex and the matching cannot be inverted.</div>

<div><br></div><div>Julien A.</div></div></div>