<html><head></head><body><div style="font-family:lucida console, sans-serif;font-size:16px;"><div></div>
<div>Hi Maryam,</div><div><br></div><div>Thanks. I was able to use MetaData to add custom values. Looks like in splunk 7, its looking for the values as DSNames for dimensions. Is there any way to add a custom DSname and attach it to all the data points ?</div><div><br></div><div><p class="ydpac0744b1p1"><span class="ydpac0744b1s1">PostCacheChain "PostCache"</span></p>
<p class="ydpac0744b1p1"><span class="ydpac0744b1s1"><Chain "PostCache"></span></p>
<p class="ydpac0744b1p1"><span class="ydpac0744b1s1"><span class="ydpac0744b1Apple-converted-space"> </span><Rule "test"></span></p>
<p class="ydpac0744b1p1"><span class="ydpac0744b1s1"><span class="ydpac0744b1Apple-converted-space"> </span><Target "set"></span></p>
<p class="ydpac0744b1p1"><span class="ydpac0744b1s1"><span class="ydpac0744b1Apple-converted-space"> </span>MetaData "foo" "bar"</span></p>
<p class="ydpac0744b1p1"><span class="ydpac0744b1Apple-converted-space"> </span></Target><br></p>
<p class="ydpac0744b1p1"><span class="ydpac0744b1s1"><span class="ydpac0744b1Apple-converted-space"> </span></Rule></span></p>
<p class="ydpac0744b1p1"><span class="ydpac0744b1s1"><span class="ydpac0744b1Apple-converted-space"> </span>Target "write"</span></p>
<p class="ydpac0744b1p1"><span class="ydpac0744b1s1"></Chain></span></p><br></div><div><br></div><div><br></div><div>Thanks</div><div>Suresh Rajagopal</div><div><br></div>
<div id="ydp82aacc70yahoo_quoted_1418868453" class="ydp82aacc70yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, November 14, 2017, 5:41:09 AM PST, Tahhan, Maryam <maryam.tahhan@intel.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydp82aacc70yiv7810455878"><div>
<div class="ydp82aacc70yiv7810455878WordSection1">
<p class="ydp82aacc70yiv7810455878MsoNormal"><span style="font-size:11.0pt;">Hi Suresh</span></p>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span style="font-size:11.0pt;">You can use a filtering chain to set the metadata, Please see:</span><span style="font-size:11.0pt;">
<span style="color:#1F497D;"><a shape="rect" href="https://collectd.org/documentation/manpages/collectd.conf.5.shtml#filter_configuration" rel="nofollow" target="_blank">https://collectd.org/documentation/manpages/collectd.conf.5.shtml#filter_configuration</a>
</span></span></p>
<p class="ydp82aacc70yiv7810455878MsoNormal"><a shape="rect" name="_MailEndCompose"><span style="font-size:11.0pt;"> </span></a></p>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span style="font-size:11.0pt;">BR</span></p>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span style="font-size:11.0pt;">Maryam
</span></p>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span style="font-size:11.0pt;"> </span></p>
<div class="ydp82aacc70yiv7810455878yqt9974053192" id="ydp82aacc70yiv7810455878yqt06963"><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<p class="ydp82aacc70yiv7810455878MsoNormal"><a shape="rect" name="_____replyseparator"></a><b><span style="font-size:11.0pt;">From:</span></b><span style="font-size:11.0pt;"> collectd [mailto:collectd-bounces@verplant.org]
<b>On Behalf Of </b>Suresh Rajagopal<br clear="none">
<b>Sent:</b> Monday, November 13, 2017 10:53 PM<br clear="none">
<b>To:</b> collectd@verplant.org<br clear="none">
<b>Subject:</b> [collectd] Metadata for Splunk Metircs</span></p>
</div>
</div>
<p class="ydp82aacc70yiv7810455878MsoNormal"> </p>
<div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span>Hi,</span></p>
</div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span> </span></p>
</div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span>I need to add some custom metadata like (region/site) for all metrics from a host. How to achieve that?</span></p>
</div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span> </span></p>
</div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal" style="margin-bottom:12.0pt;"><span>I can in see in write_tsdb or write_riemann,there are direct options available. I don't see anything similar with write_http.</span></p>
</div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span> </span></p>
</div>
<div>
<pre><span style="color:black;"><Plugin write_tsdb></span></pre>
<pre><span style="color:black;"> <Node "example"></span></pre>
<pre><span style="color:black;"> Host "tsd-1.my.domain"</span></pre>
<pre><span style="color:black;"> Port "4242"</span></pre>
<pre><b><span style="color:black;"> HostTags "status=production"</span></b></pre>
<pre><span style="color:black;"> </Node></span></pre>
<pre><span style="color:black;"> </Plugin></span></pre>
<pre><span style="color:black;"> </span></pre>
<pre><span style="color:black;"><Plugin "write_riemann"></span></pre>
<pre><span style="color:black;"> <Node "example"></span></pre>
<pre><span style="color:black;"> Host "localhost"</span></pre>
<pre><span style="color:black;"> Port "5555"</span></pre>
<pre><span style="color:black;"> Protocol UDP</span></pre>
<pre><span style="color:black;"> StoreRates true</span></pre>
<pre><span style="color:black;"> AlwaysAppendDS false</span></pre>
<pre><span style="color:black;"> TTLFactor 2.0</span></pre>
<pre><span style="color:black;"> </Node></span></pre>
<pre><b><span style="color:black;"> Tag "foobar"</span></b></pre>
<pre><b><span style="color:black;"> Attribute "foo" "bar"</span></b><span style="color:black;"></span></pre>
<pre><span style="color:black;"> </Plugin></span></pre>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span> </span></p>
</div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span> </span></p>
</div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span> </span></p>
</div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span>Thanks</span></p>
</div>
<div>
<p class="ydp82aacc70yiv7810455878MsoNormal"><span>Suresh Rajagopal</span></p>
</div>
</div>
</div></div>
</div>
</div></div></div>
</div>
</div></div></body></html>