<?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: map command not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318093#M95172</link>
    <description>&lt;P&gt;this question was asked earlier. &lt;A href="https://answers.splunk.com/answers/542641/map-command-in-splunk.html"&gt;https://answers.splunk.com/answers/542641/map-command-in-splunk.html&lt;/A&gt; for reference.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 12:08:11 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-05-25T12:08:11Z</dc:date>
    <item>
      <title>map command not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318092#M95171</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;when I am trying to run the subsearch separately, I am getting values. But when I am using map to run the below query, I am not getting any results. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="pega17052017n" QI-535653 OR QI-535654|stats values(WOID) as val|table val|map search="[search sourcetype=\"QI-535653\" QI-* val=$val$|stats values(sessionid) by val" maxsearches=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you please help?&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;BR /&gt;
Arjit goswami. &lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 11:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318092#M95171</guid>
      <dc:creator>arjitgoswami</dc:creator>
      <dc:date>2017-05-25T11:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: map command not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318093#M95172</link>
      <description>&lt;P&gt;this question was asked earlier. &lt;A href="https://answers.splunk.com/answers/542641/map-command-in-splunk.html"&gt;https://answers.splunk.com/answers/542641/map-command-in-splunk.html&lt;/A&gt; for reference.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318093#M95172</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-25T12:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: map command not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318094#M95173</link>
      <description>&lt;P&gt;@arjitgoswami, you r base search is returning multi-value result. Try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="pega17052017n" QI-535653 OR QI-535654
| stats count by WOID
| rename WOID as val
| table val
| map search="search sourcetype=\"QI-535653\" QI-* val=$val$
                          | stats values(sessionid) by val" maxsearches=10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 12:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318094#M95173</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-25T12:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: map command not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318095#M95174</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="pega17052017n" QI-535653 OR QI-535654|stats values(WOID) as val
| table val
| map maxsearches=10 search="search sourcetype=\"QI-535653\" QI-* val=$val$|stats values(sessionid) by val"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;They key is removing the extra &lt;CODE&gt;[&lt;/CODE&gt; character.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318095#M95174</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-25T12:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: map command not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318096#M95175</link>
      <description>&lt;P&gt;Thanks a lot @niketnilay. Its worked !!&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 08:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-not-working/m-p/318096#M95175</guid>
      <dc:creator>arjitgoswami</dc:creator>
      <dc:date>2017-05-26T08:24:48Z</dc:date>
    </item>
  </channel>
</rss>

