<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: appending k-means values to results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/appending-k-means-values-to-results/m-p/80356#M20308</link>
    <description>&lt;P&gt;You can use &lt;CODE&gt;eventstats&lt;/CODE&gt; to do this:&lt;BR /&gt;
&lt;CODE&gt;| eventstats avg(field) as avg by CLUSTERNUM | eventstats min(avg) as min | where min=avg&lt;/CODE&gt;&lt;BR /&gt;
should losslessly filter the results.&lt;/P&gt;

&lt;P&gt;I'd also suggest filing an enhancement request for kmeans to keep the means, so you can do this more directly.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Oct 2012 14:41:57 GMT</pubDate>
    <dc:creator>dart</dc:creator>
    <dc:date>2012-10-08T14:41:57Z</dc:date>
    <item>
      <title>appending k-means values to results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appending-k-means-values-to-results/m-p/80355#M20307</link>
      <description>&lt;P&gt;I would like to use k-means clustering on a field (k=2) and then discard the search results in the cluster with the smaller mean.  kmeans appends the CLUSTERNUM but not the values it converged to.  I don't want to do a stats calculation on my result set because I have other commands I need to run, and kmeans has already calculated it anyway.  Is it possible to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2012 16:57:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appending-k-means-values-to-results/m-p/80355#M20307</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2012-10-04T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: appending k-means values to results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appending-k-means-values-to-results/m-p/80356#M20308</link>
      <description>&lt;P&gt;You can use &lt;CODE&gt;eventstats&lt;/CODE&gt; to do this:&lt;BR /&gt;
&lt;CODE&gt;| eventstats avg(field) as avg by CLUSTERNUM | eventstats min(avg) as min | where min=avg&lt;/CODE&gt;&lt;BR /&gt;
should losslessly filter the results.&lt;/P&gt;

&lt;P&gt;I'd also suggest filing an enhancement request for kmeans to keep the means, so you can do this more directly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 14:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appending-k-means-values-to-results/m-p/80356#M20308</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-10-08T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: appending k-means values to results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appending-k-means-values-to-results/m-p/80357#M20309</link>
      <description>&lt;P&gt;Works for me, thanks.&lt;/P&gt;

&lt;P&gt;I logged an enhancement request to update kmeans.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 17:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appending-k-means-values-to-results/m-p/80357#M20309</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2012-10-08T17:53:20Z</dc:date>
    </item>
  </channel>
</rss>

