<?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 Copy csv file to a shared location in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406624#M6783</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a user use-case which is to generate an csv file (we used &lt;CODE&gt;| outputcsv&lt;/CODE&gt; ) and the file got generated in &lt;BR /&gt;&lt;CODE&gt;/app/splunk/rel/var/run/splunk/csv/filename.csv&lt;/CODE&gt;. This file needs to be moved into a shared path like \location\of\shared\path&lt;/P&gt;
&lt;P&gt;Is there a script to copy file from unix server to a shared drive, if there is any please do share. If it is not possible to copy to shared path please do let me know. I'm thinking of using it as alert action as script to call a script to copy once the .csv file gets generated.&lt;/P&gt;
&lt;P&gt;Any suggestions!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 20:40:39 GMT</pubDate>
    <dc:creator>ashrafshareeb</dc:creator>
    <dc:date>2020-06-08T20:40:39Z</dc:date>
    <item>
      <title>Copy csv file to a shared location</title>
      <link>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406624#M6783</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a user use-case which is to generate an csv file (we used &lt;CODE&gt;| outputcsv&lt;/CODE&gt; ) and the file got generated in &lt;BR /&gt;&lt;CODE&gt;/app/splunk/rel/var/run/splunk/csv/filename.csv&lt;/CODE&gt;. This file needs to be moved into a shared path like \location\of\shared\path&lt;/P&gt;
&lt;P&gt;Is there a script to copy file from unix server to a shared drive, if there is any please do share. If it is not possible to copy to shared path please do let me know. I'm thinking of using it as alert action as script to call a script to copy once the .csv file gets generated.&lt;/P&gt;
&lt;P&gt;Any suggestions!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 20:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406624#M6783</guid>
      <dc:creator>ashrafshareeb</dc:creator>
      <dc:date>2020-06-08T20:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Copy csv file to a shared location</title>
      <link>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406625#M6784</link>
      <description>&lt;P&gt;As the documentation says, the &lt;CODE&gt;outputcsv&lt;/CODE&gt; command will only write files in the one location.  This is protect your system from rogue queries.  If you need the CSV file in another location then you'll need to either create a shell script triggered by cron or a Splunk external command appended to your query (&lt;CODE&gt;... | outputcsv filename.csv | script moveCSV&lt;/CODE&gt;).  See "About writing custom search commands" at &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Search/Aboutcustomsearchcommands"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Search/Aboutcustomsearchcommands&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 19:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406625#M6784</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-25T19:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Copy csv file to a shared location</title>
      <link>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406626#M6785</link>
      <description>&lt;P&gt;Hi - I have the same need. Have you figured out how to make it work? Please share.&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 16:48:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406626#M6785</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-04-22T16:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Copy csv file to a shared location</title>
      <link>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406627#M6786</link>
      <description>&lt;P&gt;Try to make apps.&lt;BR /&gt;
In apps, &lt;CODE&gt;outputlookup&lt;/CODE&gt; make csv at &lt;EM&gt;$SPLUNK_HOME/etc/apps/appsname/lookups&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;directory permition could be modified,I guess.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Copy-csv-file-to-a-shared-location/m-p/406627#M6786</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-09-30T05:07:41Z</dc:date>
    </item>
  </channel>
</rss>

