<?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: Why is the map command in my search no longer returning results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-map-command-in-my-search-no-longer-returning-results/m-p/263257#M79041</link>
    <description>&lt;P&gt;You may be able to get your results using just a subsearch, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = "index" test_id = "test_id" Scenario = "scenario"  [search index = "index" test_id = "test_id" Scenario = "scenario" | stats median(field) as field]   | stats values by test_id 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;OR avoid the sub-search with this&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = "index" test_id = "test_id" Scenario = "scenario"  | eventstats median(field) as med | where field=med | stats values by test_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Sep 2016 03:34:27 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-01T03:34:27Z</dc:date>
    <item>
      <title>Why is the map command in my search no longer returning results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-map-command-in-my-search-no-longer-returning-results/m-p/263256#M79040</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I would like to get the values of an event that matches a median value of that event. My search is something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = "index" test_id = "test_id" Scenario = "scenario" | stats median(field) as "SomeName" | map [search index = "index" test_id = "test_id" Scenario = "scenario" AND field = $SomeName$ | stats values by test_id ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it used to work before, but for some reason it is not now. Please help. &lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 00:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-map-command-in-my-search-no-longer-returning-results/m-p/263256#M79040</guid>
      <dc:creator>kallisrayar1986</dc:creator>
      <dc:date>2016-09-01T00:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the map command in my search no longer returning results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-map-command-in-my-search-no-longer-returning-results/m-p/263257#M79041</link>
      <description>&lt;P&gt;You may be able to get your results using just a subsearch, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = "index" test_id = "test_id" Scenario = "scenario"  [search index = "index" test_id = "test_id" Scenario = "scenario" | stats median(field) as field]   | stats values by test_id 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;OR avoid the sub-search with this&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = "index" test_id = "test_id" Scenario = "scenario"  | eventstats median(field) as med | where field=med | stats values by test_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Sep 2016 03:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-map-command-in-my-search-no-longer-returning-results/m-p/263257#M79041</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-01T03:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the map command in my search no longer returning results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-map-command-in-my-search-no-longer-returning-results/m-p/263258#M79042</link>
      <description>&lt;P&gt;thank you Sundareshr, it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-map-command-in-my-search-no-longer-returning-results/m-p/263258#M79042</guid>
      <dc:creator>kallisrayar1986</dc:creator>
      <dc:date>2016-09-01T18:59:55Z</dc:date>
    </item>
  </channel>
</rss>

