<?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 Where should I place temp files generated by my scripted input? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Where-should-I-place-temp-files-generated-by-my-scripted-input/m-p/583133#M102752</link>
    <description>&lt;P&gt;I made a custom TA in "&lt;EM&gt;/opt/splunk/etc/apps/myTA/&lt;/EM&gt;". I created a script called "&lt;EM&gt;myTA/bin/scripts/pulldata.sh&lt;/EM&gt;". My script makes temp files and it attempts to save in "&lt;EM&gt;myTA/bin/scripts/&lt;/EM&gt;", but it has errors writing to that path. I can run the script in CLI using "&lt;EM&gt;./pulldata.sh&lt;/EM&gt;" as the splunk user and it is fine to write the temp files to the "scripts" directory. I tried to use "&lt;EM&gt;/opt/splunk/bin/splunk cmd /opt/splunk/etc/apps/myTA/scripts/pulldata.sh&lt;/EM&gt;", but that also has issues writing the temp files. I'm assuming that Splunk only lets the scripts write files in specific directories.&lt;/P&gt;&lt;P&gt;Is there a specific/correct location that I should be placing these temp files? I'm thinking I can write to "/opt/splunk/var/log/splunk", but I want to see what the Splunk recommended path if for this kind of stuff . I remember seeing information about this at some point on dev.splunk.com, but can't seem to find it anymore.&lt;/P&gt;&lt;P&gt;This is what I have been looking at:&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/createapps/appanatomy/" target="_blank" rel="noopener"&gt;https://dev.splunk.com/enterprise/docs/developapps/createapps/appanatomy/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 19:50:53 GMT</pubDate>
    <dc:creator>EatMoreChicken</dc:creator>
    <dc:date>2022-01-31T19:50:53Z</dc:date>
    <item>
      <title>Where should I place temp files generated by my scripted input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-should-I-place-temp-files-generated-by-my-scripted-input/m-p/583133#M102752</link>
      <description>&lt;P&gt;I made a custom TA in "&lt;EM&gt;/opt/splunk/etc/apps/myTA/&lt;/EM&gt;". I created a script called "&lt;EM&gt;myTA/bin/scripts/pulldata.sh&lt;/EM&gt;". My script makes temp files and it attempts to save in "&lt;EM&gt;myTA/bin/scripts/&lt;/EM&gt;", but it has errors writing to that path. I can run the script in CLI using "&lt;EM&gt;./pulldata.sh&lt;/EM&gt;" as the splunk user and it is fine to write the temp files to the "scripts" directory. I tried to use "&lt;EM&gt;/opt/splunk/bin/splunk cmd /opt/splunk/etc/apps/myTA/scripts/pulldata.sh&lt;/EM&gt;", but that also has issues writing the temp files. I'm assuming that Splunk only lets the scripts write files in specific directories.&lt;/P&gt;&lt;P&gt;Is there a specific/correct location that I should be placing these temp files? I'm thinking I can write to "/opt/splunk/var/log/splunk", but I want to see what the Splunk recommended path if for this kind of stuff . I remember seeing information about this at some point on dev.splunk.com, but can't seem to find it anymore.&lt;/P&gt;&lt;P&gt;This is what I have been looking at:&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/createapps/appanatomy/" target="_blank" rel="noopener"&gt;https://dev.splunk.com/enterprise/docs/developapps/createapps/appanatomy/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 19:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-should-I-place-temp-files-generated-by-my-scripted-input/m-p/583133#M102752</guid>
      <dc:creator>EatMoreChicken</dc:creator>
      <dc:date>2022-01-31T19:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where should I place temp files generated by my scripted input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-should-I-place-temp-files-generated-by-my-scripted-input/m-p/583316#M102778</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231170"&gt;@EatMoreChicken&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I believe this would help you understand placing the outputs in a detailed manner -&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/custominputs/scriptedinputsexample/#Example-file-structure-for-a-scripted-input" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/custominputs/scriptedinputsexample/#Example-file-structure-for-a-scripted-input&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 04:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-should-I-place-temp-files-generated-by-my-scripted-input/m-p/583316#M102778</guid>
      <dc:creator>tshah-splunk</dc:creator>
      <dc:date>2022-02-02T04:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Where should I place temp files generated by my scripted input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-should-I-place-temp-files-generated-by-my-scripted-input/m-p/584805#M102903</link>
      <description>&lt;P&gt;Perfect, this is exactly what I was looking for!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 20:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-should-I-place-temp-files-generated-by-my-scripted-input/m-p/584805#M102903</guid>
      <dc:creator>EatMoreChicken</dc:creator>
      <dc:date>2022-02-11T20:00:36Z</dc:date>
    </item>
  </channel>
</rss>

