<?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: Export search results to a folder outside splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749091#M119040</link>
    <description>&lt;P&gt;You can use this app -&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/5738" target="_blank"&gt;https://splunkbase.splunk.com/app/5738&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it seems to have support for many destinations... except local file. You can get around it by connecting back to the host you're running your Splunk instance on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 10:08:25 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2025-07-02T10:08:25Z</dc:date>
    <item>
      <title>Export search results to a folder outside splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749087#M119038</link>
      <description>&lt;P&gt;Hello Everyone&lt;/P&gt;&lt;P&gt;I need to export the search results to a folder outside the Splunk. To do this job we've exportresults in Splunk which works fine. Basically in my scenario, it is a saved search which runs every week and data has been exported to the folder but it creates a new folder. I need to append the search results to the existing file or else I need to replace the file with the new data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I get result for any one of the things mentioned above. I'm good. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 09:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749087#M119038</guid>
      <dc:creator>DineshElumalai</dc:creator>
      <dc:date>2025-07-02T09:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export search results to a folder outside splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749088#M119039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/266158"&gt;@DineshElumalai&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I suppose that you're speaking of exportcsv, that is usually exported in the $SPLUNK_HOME/var/run/splunk/csv folder (export folder isn't configurable) and than you can use it.&lt;/P&gt;&lt;P&gt;If you export using the same name the file is overwritten, if the file is saved in a different folder maybe there is some customization (e.g. a script that moves the file).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 09:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749088#M119039</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-07-02T09:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export search results to a folder outside splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749091#M119040</link>
      <description>&lt;P&gt;You can use this app -&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/5738" target="_blank"&gt;https://splunkbase.splunk.com/app/5738&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it seems to have support for many destinations... except local file. You can get around it by connecting back to the host you're running your Splunk instance on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 10:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749091#M119040</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-07-02T10:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export search results to a folder outside splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749092#M119041</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/266158"&gt;@DineshElumalai&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Are you using splunk native csv export? or using any script or rest api to export the results?&lt;BR /&gt;If you are using outputcsv i agree with&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; export the result to splunk folder and create a script to move to your folder.&lt;/P&gt;&lt;P&gt;Also you can consider using exporting data using &lt;STRONG&gt;rest api with curl.&lt;/STRONG&gt;&lt;BR /&gt;curl -k -u &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;&amp;nbsp;https://&amp;lt;splunk-host&amp;gt;:8089/services/search/jobs/export \&lt;BR /&gt;-d search="search index=test sourcetype=test earliest=-7d@d latest=now" \&lt;BR /&gt;-d output_mode=csv &amp;gt; /external/path/to/destination/results.csv&lt;/P&gt;&lt;P&gt;To append new results to an existing file, use &amp;gt;&amp;gt; instead of &amp;gt;&lt;/P&gt;&lt;P&gt;curl -k -u &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;&amp;nbsp;https://&amp;lt;splunk-host&amp;gt;:8089/services/search/jobs/export \&lt;BR /&gt;-d search="search savedsearch test_weekly_export" \&lt;BR /&gt;-d output_mode=csv &amp;gt;&amp;gt; /path/to/your/target/folder/test_report.csv&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#&lt;A href="https://help.splunk.com/en/splunk-enterprise/search/search-manual/9.3/export-search-results/export-data-using-the-splunk-rest-api" target="_blank"&gt;https://help.splunk.com/en/splunk-enterprise/search/search-manual/9.3/export-search-results/export-data-using-the-splunk-rest-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 10:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Export-search-results-to-a-folder-outside-splunk/m-p/749092#M119041</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-07-02T10:14:04Z</dc:date>
    </item>
  </channel>
</rss>

