<?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: What's wrong with my rangemap? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269283#M80998</link>
    <description>&lt;P&gt;The rangemap command works fine with my splunk version 6.2.3 .  Alternatively you can try with case statement for your requirement.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Oct 2015 12:36:21 GMT</pubDate>
    <dc:creator>badrinath_itrs</dc:creator>
    <dc:date>2015-10-11T12:36:21Z</dc:date>
    <item>
      <title>What's wrong with my rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269280#M80995</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying out some searches learned at .conf.  This one is supposed to provide lag info for indexing delays.  Unfortunately, I can't get it to work.   Any help is appreciated. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts   
| eval seconds_lag=(recentTime -lastTime)
| convert ctime(lastTime) as LastTime
| convert ctime(firstTime) as FirstTime
| convert ctime(recentTime) as IndexTime
| rangemap field=seconds_lag low=0-1800 elevated=1801-3600
| fields host,FirstTime,LastTime,IndexTime,seconds_lag,range
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Oct 2015 01:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269280#M80995</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-10-11T01:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269281#M80996</link>
      <description>&lt;P&gt;That query seems to work for me. What results are you getting that appear wrong?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2015 10:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269281#M80996</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-10-11T10:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269282#M80997</link>
      <description>&lt;P&gt;I get:&lt;/P&gt;

&lt;P&gt;Error in 'rangemap' command: Invalid range: '0-1800 elevated=1801-3600'. '-' expected. &lt;/P&gt;

&lt;P&gt;I am running Splunk 6.1.9&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2015 12:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269282#M80997</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-10-11T12:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269283#M80998</link>
      <description>&lt;P&gt;The rangemap command works fine with my splunk version 6.2.3 .  Alternatively you can try with case statement for your requirement.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2015 12:36:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269283#M80998</guid>
      <dc:creator>badrinath_itrs</dc:creator>
      <dc:date>2015-10-11T12:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269284#M80999</link>
      <description>&lt;P&gt;Odd - 6.3.0 here.&lt;/P&gt;

&lt;P&gt;Try one of the examples from &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.9/SearchReference/rangemap"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.9/SearchReference/rangemap&lt;/A&gt; to narrow it down, if those work then modify from there.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2015 15:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269284#M80999</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-10-11T15:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269285#M81000</link>
      <description>&lt;P&gt;Just a long shot, but did you copy and paste this search from somewhere else?  Wondering if maybe the dash is like a long dash or something along those lines.  If you typed it out yourself in the search bar, then that shouldn't be a problem.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2015 18:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269285#M81000</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2015-10-11T18:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269286#M81001</link>
      <description>&lt;P&gt;This the answer, because the &lt;CODE&gt;Em dash&lt;/CODE&gt; will cause this error. You can test it with the two following searches:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;working:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts    
 | eval seconds_lag=(recentTime -lastTime)
 | convert ctime(lastTime) as LastTime
 | convert ctime(firstTime) as FirstTime
 | convert ctime(recentTime) as IndexTime
 | rangemap field=seconds_lag low=0-1800 elevated=1801-3600
 | fields host,FirstTime,LastTime,IndexTime,seconds_lag,range
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;not working:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts    
 | eval seconds_lag=(recentTime -lastTime)
 | convert ctime(lastTime) as LastTime
 | convert ctime(firstTime) as FirstTime
 | convert ctime(recentTime) as IndexTime
 | rangemap field=seconds_lag low=0—1800 elevated=1801—3600
 | fields host,FirstTime,LastTime,IndexTime,seconds_lag,range
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns the error &lt;CODE&gt;Error in 'rangemap' command: Invalid range: '0—1800'. '-' expected.&lt;/CODE&gt; because of the &lt;CODE&gt;Em dash&lt;/CODE&gt; &lt;A href="http://www.thepunctuationguide.com/em-dash.html"&gt;http://www.thepunctuationguide.com/em-dash.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2015 19:25:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269286#M81001</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-10-11T19:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269287#M81002</link>
      <description>&lt;P&gt;Also, depending on permissions, you may need to add &lt;CODE&gt;indexes=*&lt;/CODE&gt; to your first line.&lt;/P&gt;

&lt;P&gt;For example, you could go so far as starting with the new line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts ( index=* OR index=_* )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Oct 2015 20:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-wrong-with-my-rangemap/m-p/269287#M81002</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2015-10-15T20:29:16Z</dc:date>
    </item>
  </channel>
</rss>

