<?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 How does the search &amp;quot;index=bigdata | dump basefilename=MyExport&amp;quot; know the path to save this to, and how can I change this path? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260510#M78135</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index=bigdata | dump basefilename=MyExport
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How does this command know the path to save, and how do I change the path to save, such as the desktop or somewhere else?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2016 20:42:57 GMT</pubDate>
    <dc:creator>nagarjuna280</dc:creator>
    <dc:date>2016-12-01T20:42:57Z</dc:date>
    <item>
      <title>How does the search "index=bigdata | dump basefilename=MyExport" know the path to save this to, and how can I change this path?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260510#M78135</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=bigdata | dump basefilename=MyExport
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How does this command know the path to save, and how do I change the path to save, such as the desktop or somewhere else?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 20:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260510#M78135</guid>
      <dc:creator>nagarjuna280</dc:creator>
      <dc:date>2016-12-01T20:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How does the search "index=bigdata | dump basefilename=MyExport" know the path to save this to, and how can I change this path?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260511#M78136</link>
      <description>&lt;P&gt;Based on the docs here - &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Dump"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/SearchReference/Dump&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It gets saved to the dump directory of the search  ($SPLUNK_HOME/var/run/splunk/dispatch/{SID}/dump/ ). To find the SID you can look at the end of your url (it will say something like this sid=1480626241.4257) or in the search job inspector.&lt;/P&gt;

&lt;P&gt;Using the sid example above you would navigate to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/var/run/splunk/dispatch/480626241.4257/dump
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to find the file.&lt;BR /&gt;
You can specify a directory appended to this by setting a _dstpath variable&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval _dstpath=yourdirname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but note this appends to the dump location and is not used to specify just anywhere on disk.&lt;/P&gt;

&lt;P&gt;You can see where it is written after the command is run as the results will display the rolledfile location.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 21:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260511#M78136</guid>
      <dc:creator>Flynt</dc:creator>
      <dc:date>2016-12-01T21:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How does the search "index=bigdata | dump basefilename=MyExport" know the path to save this to, and how can I change this path?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260512#M78137</link>
      <description>&lt;P&gt;how to write _dstpath if i want to save to this location  "C:\Users\nagarjuna reddy\Desktop" &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval _dstpath=strftime(_time, "%Y%m%d/%H") + "/" + C:\\Users\\nagarjuna reddy\\Desktop | dump basefilename=MyExport 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is this the way?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 21:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260512#M78137</guid>
      <dc:creator>nagarjuna280</dc:creator>
      <dc:date>2016-12-01T21:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: How does the search "index=bigdata | dump basefilename=MyExport" know the path to save this to, and how can I change this path?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260513#M78138</link>
      <description>&lt;P&gt;You won't be able, as my Answer stated&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;but note this appends to the dump&lt;BR /&gt;
location and is not used to specify&lt;BR /&gt;
just anywhere on disk&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The _dstpath only appends to the search's dump directory.&lt;/P&gt;

&lt;P&gt;Notice another post regarding this - &lt;A href="https://answers.splunk.com/answers/306301/how-can-i-identify-the-full-path-to-the-output-fil.html"&gt;https://answers.splunk.com/answers/306301/how-can-i-identify-the-full-path-to-the-output-fil.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 21:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-the-search-quot-index-bigdata-dump-basefilename/m-p/260513#M78138</guid>
      <dc:creator>Flynt</dc:creator>
      <dc:date>2016-12-01T21:39:41Z</dc:date>
    </item>
  </channel>
</rss>

