<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial">On Tue, Aug 26, 2014 at 10:58 PM, David Blewett </span><span dir="ltr" style="font-family:arial"><<a href="mailto:david@dawninglight.net" target="_blank">david@dawninglight.net</a>></span><span style="font-family:arial"> wrote:</span><br>
</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div class=""><div style="font-family:arial,helvetica,sans-serif">So I've been trying to implement option 1, but have not had any luck. </div></div></div></blockquote><div><br></div><div class="gmail_quote"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
It ended up being pilot error. I made 2 mistakes that made my chain not work:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
1. Didn't explicitly load the target_set plugin</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">2. Had a typo in the chain name</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Here is my working config, for posterity:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<div class="gmail_default">LoadPlugin "match_regex" # we want to use this for our Matching</div><div class="gmail_default">LoadPlugin "target_set" # This isn't builtin</div><div class="gmail_default">
<Chain "PreCache"></div><div class="gmail_default"> <Rule> # Strip Host values from "statsd" metrics</div><div class="gmail_default"> <Match regex></div><div class="gmail_default">
Plugin "^statsd$"</div><div class="gmail_default"> </Match></div><div class="gmail_default"> <Target "set"></div><div class="gmail_default"> Host "rf"</div><div class="gmail_default">
</Target></div><div class="gmail_default"> </Rule></div><div class="gmail_default"></Chain></div></div></div><br clear="all"><div>Thanks,<br><br></div><div>David Blewett </div></div><br></div></div>