<?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: rangemap with too many values in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48494#M2436</link>
    <description>&lt;P&gt;What duration value(s) do those in the default bucket have?&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2013 18:16:17 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-03-01T18:16:17Z</dc:date>
    <item>
      <title>rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48491#M2433</link>
      <description>&lt;P&gt;have this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;application response sourcetype=log1 OR sourcetype=log2 (host = host1 OR host = host2 OR host = host3 OR host = host4 ) | rex "(A|a)pplication response.*time was\s+(?P&amp;lt;app_response&amp;gt;\d+)\s" | rangemap field=app_response "A. Less than 0.25 seconds"=0-249 "B. More than 0.25 but less than 0.5 seconds"=250-500 "C. More than half-second but less than a second"=500-1000 default="D. More than a second" |stats count by range
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should work, right?  If I run it with just "stats count" I get 55,127 returns.&lt;BR /&gt;&lt;BR /&gt;
If I run it with rangemap I get 77,484 with 22,377 going to the "default" category.&lt;/P&gt;

&lt;P&gt;If I do the search and and only search for items over 1000 ms I get zero ( "search app_response&amp;gt;1000").&lt;/P&gt;

&lt;P&gt;So, why the extra bad numbers?  What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 15:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48491#M2433</guid>
      <dc:creator>tyronetv</dc:creator>
      <dc:date>2013-03-01T15:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48492#M2434</link>
      <description>&lt;P&gt;Are there by any chance thousands with exactly 500ms duration? Those get rangemapped twice due to an overlap at 500.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 17:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48492#M2434</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-01T17:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48493#M2435</link>
      <description>&lt;P&gt;No, the issue is that the 'default' bucket has 20,000+ that don't exist in the primary search string.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 17:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48493#M2435</guid>
      <dc:creator>tyronetv</dc:creator>
      <dc:date>2013-03-01T17:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48494#M2436</link>
      <description>&lt;P&gt;What duration value(s) do those in the default bucket have?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 18:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48494#M2436</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-01T18:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48495#M2437</link>
      <description>&lt;P&gt;They have "no value" that I can find. There should be no counts in the default bucket.  But, to more specifically answer, if you look at the query, I believe the default should include values &amp;gt; 1000&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 19:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48495#M2437</guid>
      <dc:creator>tyronetv</dc:creator>
      <dc:date>2013-03-01T19:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48496#M2438</link>
      <description>&lt;P&gt;The default bucket contains all events that do not belong in another bucket. That's those &amp;gt;1000, those &amp;lt;0, and those with no value.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 20:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48496#M2438</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-01T20:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48497#M2439</link>
      <description>&lt;P&gt;Maybe I wasn't clear.  The default bucket has 20,000+ count that do not exist in the search.  Read my initial post.  Search pipe to count gives 50K+ results.  Search pipe to rangemap gives 70K+ results.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 22:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48497#M2439</guid>
      <dc:creator>tyronetv</dc:creator>
      <dc:date>2013-03-01T22:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48498#M2440</link>
      <description>&lt;P&gt;Can you provide anonymized sample data?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 23:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48498#M2440</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-01T23:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48499#M2441</link>
      <description>&lt;P&gt;2013-03-01 12:35:28,878 INFO  [ler-HTTPThreadGroup-17042] RID=1362170128682-2299470 c.r.t.i.s.e.applicationImageArchiveConnection - application response time was 138 milliseconds.&lt;/P&gt;

&lt;P&gt;2013-03-01 14:35:22,040[ndler-HTTPThreadGroup-681] INFO  dis.service.application.ImageArchiveConnection - [1] application response time was 128 milliseconds.&lt;/P&gt;

&lt;P&gt;2013-03-01 12:35:21,950 INFO  [ler-HTTPThreadGroup-17053] RID=1362170121771-2299465 c.r.t.i.s.e.applicationImageArchiveConnection - application response time was 124 milliseconds.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2013 03:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48499#M2441</guid>
      <dc:creator>tyronetv</dc:creator>
      <dc:date>2013-03-02T03:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48500#M2442</link>
      <description>&lt;P&gt;Rangemap is a strange command - it is actually a custom command and written as a Python script. I would try this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;application response sourcetype=log1 OR sourcetype=log2 (host = host1 OR host = host2 OR host = host3 OR host = host4 ) 
| rex "(A|a)pplication response.*?time was\s+(?P&amp;lt;app_response&amp;gt;\d+)\s" 
| where app_response &amp;gt;= 0
| eval appResponseCategory = case(
          app_response&amp;lt;250,"A. Less than 0.25 seconds",
          app_response&amp;gt;=250 AND app_response&amp;lt;500,"B. More than 0.25 but less than 0.5 seconds"
          app_response&amp;gt;=500 AND app_response&amp;lt;1000,"C. More than half-second but less than a second"
          "1"=="1","D. One second or more" )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that I eliminated events that did not have an application response time - this may be where your "extra" default events were arising. Also, I made sure that the categories did not overlap, as your original categories did at 500 (one-half second). Finally, I think that the &lt;CODE&gt;case&lt;/CODE&gt; function will out-perform the &lt;CODE&gt;rangemap&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2013 06:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48500#M2442</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-03-02T06:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: rangemap with too many values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48501#M2443</link>
      <description>&lt;P&gt;This was the fix.  I had used case before (another question) but was suggested I use rangemap.  For this search using case is the clear winner.&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2013 16:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/rangemap-with-too-many-values/m-p/48501#M2443</guid>
      <dc:creator>tyronetv</dc:creator>
      <dc:date>2013-03-04T16:33:09Z</dc:date>
    </item>
  </channel>
</rss>

