<?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 can I identify the full path to the output file of a dump command? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214130#M42100</link>
    <description>&lt;P&gt;I am being forced to output my saved search results in .tsv format, so it appears that the dump command is the way to go.&lt;/P&gt;

&lt;P&gt;But how can I identify the full path to the file that I created under var/run/splunk/dispatch so that I can grab the results programmatically before it disappears?  I have experimented with the _dstpath variable and only succeeded in burying the file that I want to retrieve deeper under the dispatch/ directory.&lt;/P&gt;

&lt;P&gt;Has anyone done this successfully before?  I'm sure it's a fairly simple unix solution that I have no experience with ...&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2015 01:06:11 GMT</pubDate>
    <dc:creator>garywiner</dc:creator>
    <dc:date>2015-09-04T01:06:11Z</dc:date>
    <item>
      <title>How can I identify the full path to the output file of a dump command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214130#M42100</link>
      <description>&lt;P&gt;I am being forced to output my saved search results in .tsv format, so it appears that the dump command is the way to go.&lt;/P&gt;

&lt;P&gt;But how can I identify the full path to the file that I created under var/run/splunk/dispatch so that I can grab the results programmatically before it disappears?  I have experimented with the _dstpath variable and only succeeded in burying the file that I want to retrieve deeper under the dispatch/ directory.&lt;/P&gt;

&lt;P&gt;Has anyone done this successfully before?  I'm sure it's a fairly simple unix solution that I have no experience with ...&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 01:06:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214130#M42100</guid>
      <dc:creator>garywiner</dc:creator>
      <dc:date>2015-09-04T01:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify the full path to the output file of a dump command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214131#M42101</link>
      <description>&lt;P&gt;Have you considered the &lt;CODE&gt;outputcsv&lt;/CODE&gt; command?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/outputcsv"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/outputcsv&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 20:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214131#M42101</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-04T20:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify the full path to the output file of a dump command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214132#M42102</link>
      <description>&lt;P&gt;I would love to do that and join everyone in the 21st century, but my client is insisting on a tab-separated values format in the output file.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 20:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214132#M42102</guid>
      <dc:creator>garywiner</dc:creator>
      <dc:date>2015-09-04T20:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify the full path to the output file of a dump command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214133#M42103</link>
      <description>&lt;P&gt;Assuming your're using scheduled saved search to do the export, you would be able to get the sid using following search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/search/jobs | table sid title | search title="yourSavedSearchName"  | head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The dump command will save the file on disk at &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`$SPLUNK_HOME/var/run/splunk/dispatch/&amp;lt;sid&amp;gt;/dump/` 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;directory so your can take the result of above search (sid field) and replace it above&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 21:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214133#M42103</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-04T21:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify the full path to the output file of a dump command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214134#M42104</link>
      <description>&lt;P&gt;Once your &lt;CODE&gt;outputcsv&lt;/CODE&gt; is done (and we know &lt;EM&gt;exactly&lt;/EM&gt; where it will be), you can just do this to convert CSV to TSV before you ftp it to wherever:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sed "s/,/\t/g" MyOutputFile.csv &amp;gt; MyOutputFilte.tsv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Sep 2015 21:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-the-full-path-to-the-output-file-of-a-dump/m-p/214134#M42104</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-04T21:48:25Z</dc:date>
    </item>
  </channel>
</rss>

