<?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 subsearch issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109408#M28538</link>
    <description>&lt;P&gt;Thank you, but I need a different file for each host in the index (the parameter in map command)&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2015 07:42:19 GMT</pubDate>
    <dc:creator>francescafilini</dc:creator>
    <dc:date>2015-05-14T07:42:19Z</dc:date>
    <item>
      <title>map command subsearch issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109404#M28534</link>
      <description>&lt;P&gt;Hi, I have an issue with map command. The query is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex field=value |stats count by host| map maxsearches=100 search="search index=myindex host=$host$|outputtext usexml=false |fields raw| fields - _time, xml| outputcsv  $host$.[search | head 1 | eval start=strftime(relative_time(now(), "-7d@d"), "%d_%m_%Y")| eval end=strftime(relative_time(now(), "-1d@d"), "%d_%m_%Y")|eval query="from".start."_to_".end.".txt"| fields query| format "" "" "" "" "" ""]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but is does not return results. Any hint? Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 14:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109404#M28534</guid>
      <dc:creator>francescafilini</dc:creator>
      <dc:date>2015-05-13T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: map command subsearch issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109405#M28535</link>
      <description>&lt;P&gt;What are you trying to achieve?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 15:43:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109405#M28535</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-13T15:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: map command subsearch issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109406#M28536</link>
      <description>&lt;P&gt;I'm trying to have a file with all the raw data in the index "myindex"&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 15:52:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109406#M28536</guid>
      <dc:creator>francescafilini</dc:creator>
      <dc:date>2015-05-13T15:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: map command subsearch issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109407#M28537</link>
      <description>&lt;P&gt;You can easily export all the raw data in the index &lt;CODE&gt;myindex&lt;/CODE&gt; by running this from the CLI:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk export eventdata -index myindex -dir /some/dir/
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 May 2015 18:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109407#M28537</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-13T18:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: map command subsearch issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109408#M28538</link>
      <description>&lt;P&gt;Thank you, but I need a different file for each host in the index (the parameter in map command)&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 07:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109408#M28538</guid>
      <dc:creator>francescafilini</dc:creator>
      <dc:date>2015-05-14T07:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: map command subsearch issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109409#M28539</link>
      <description>&lt;P&gt;I see. In that case, give this a shot in the web UI:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex | eval _dstpath = host | dump basefilename=myexport
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That'll create one directory per host under $SPLUNK_HOME/var/run/splunk/dispatch/sid/dump and dump the raw events for that host there.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 09:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/map-command-subsearch-issue/m-p/109409#M28539</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-14T09:24:46Z</dc:date>
    </item>
  </channel>
</rss>

