<?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: Creating clusters from intervals of numeric values in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Creating-clusters-from-intervals-of-numeric-values/m-p/119579#M4519</link>
    <description>&lt;P&gt;This is perfect! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2015 10:54:06 GMT</pubDate>
    <dc:creator>SilviaGebel</dc:creator>
    <dc:date>2015-05-26T10:54:06Z</dc:date>
    <item>
      <title>Creating clusters from intervals of numeric values</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Creating-clusters-from-intervals-of-numeric-values/m-p/119577#M4517</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;

&lt;P&gt;I want to create clusters of numeric data.&lt;/P&gt;

&lt;P&gt;For example: &lt;/P&gt;

&lt;P&gt;field: temperature with values between 19.0°C and 23.0°C&lt;/P&gt;

&lt;P&gt;the clusters should be as following:&lt;/P&gt;

&lt;P&gt;temp1: 19.0 - 21.0&lt;BR /&gt;
temp2: 21.1 - 22.0&lt;BR /&gt;
temp3: 22.1 - 23.0&lt;/P&gt;

&lt;P&gt;I would need to have a search string as such:  |eval temp1=(temperature&amp;gt;="19.0" AND "temperature&amp;lt;="21.0")&lt;/P&gt;

&lt;P&gt;so I can search for | chart list(error) by temp*&lt;/P&gt;

&lt;P&gt;in order to see how many times an error occured in each of the temperature intervalls.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 13:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Creating-clusters-from-intervals-of-numeric-values/m-p/119577#M4517</guid>
      <dc:creator>SilviaGebel</dc:creator>
      <dc:date>2015-05-21T13:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating clusters from intervals of numeric values</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Creating-clusters-from-intervals-of-numeric-values/m-p/119578#M4518</link>
      <description>&lt;P&gt;To do a chart that is subdivided by temperature clusters, what you want to do is create one field (let's call it &lt;CODE&gt;temprange&lt;/CODE&gt;) with different values. That way you can use &lt;CODE&gt;| stats list(error) by temprange&lt;/CODE&gt; to get what you want.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...your search for data...
| eval temprange=case(temperature&amp;gt;=19 AND temperature&amp;lt;=21,"low",temperature&amp;gt;21 AND temperature&amp;lt;=22,"medium",temperature&amp;gt;22 AND temperature&amp;lt;=23,"high",1=1,"out of range")
| stats list(error) as Errors count by temprange
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(Assuming that the &lt;CODE&gt;temperature&lt;/CODE&gt; field is numeric; you don't want to compare numbers using strings as you've listed above. If not, use the &lt;CODE&gt;convert&lt;/CODE&gt; function on it: &lt;CODE&gt;| convert auto(temperature)&lt;/CODE&gt; before doing the &lt;CODE&gt;eval/case&lt;/CODE&gt; statement.)&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 14:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Creating-clusters-from-intervals-of-numeric-values/m-p/119578#M4518</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-05-21T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating clusters from intervals of numeric values</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Creating-clusters-from-intervals-of-numeric-values/m-p/119579#M4519</link>
      <description>&lt;P&gt;This is perfect! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 10:54:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Creating-clusters-from-intervals-of-numeric-values/m-p/119579#M4519</guid>
      <dc:creator>SilviaGebel</dc:creator>
      <dc:date>2015-05-26T10:54:06Z</dc:date>
    </item>
  </channel>
</rss>

