<?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: Where does Splunk store output of Python script? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595478#M10599</link>
    <description>&lt;P&gt;It is created with Element Tree module in Python. Usually, when you run it from a console (I personally use Visual Studio Code), the XML file is written/generated in the same folder as the script itself (.py). Although, when I put the script in "/opt/splunk/etc/apps/myapp/bin" folder and run it with Splunk, the script is running but the XML file is not generated.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 20:16:35 GMT</pubDate>
    <dc:creator>mrrci</dc:creator>
    <dc:date>2022-04-26T20:16:35Z</dc:date>
    <item>
      <title>Where does Splunk store output of Python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595466#M10597</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey there Splunk community. I'm new here and I would appreciate some help if it is possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I wrote a Python script that generates a XML file when you run it. However, when I run it through Splunk I don't get the generated XML files as I usually do (when I run it in the console) in the same folder where the script is located.&lt;/P&gt;&lt;P&gt;Where do those XML files go? I can't find them,&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 18:30:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595466#M10597</guid>
      <dc:creator>mrrci</dc:creator>
      <dc:date>2022-04-26T18:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where does Splunk store output of Python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595475#M10598</link>
      <description>&lt;P&gt;We need more information.&amp;nbsp; How is the XML file created?&amp;nbsp; How is the file path specified?&amp;nbsp; How is the file populated?&amp;nbsp; Do you see any errors in Splunk's python.log file?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 20:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595475#M10598</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-04-26T20:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Where does Splunk store output of Python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595478#M10599</link>
      <description>&lt;P&gt;It is created with Element Tree module in Python. Usually, when you run it from a console (I personally use Visual Studio Code), the XML file is written/generated in the same folder as the script itself (.py). Although, when I put the script in "/opt/splunk/etc/apps/myapp/bin" folder and run it with Splunk, the script is running but the XML file is not generated.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 20:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595478#M10599</guid>
      <dc:creator>mrrci</dc:creator>
      <dc:date>2022-04-26T20:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Where does Splunk store output of Python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595482#M10600</link>
      <description>&lt;P&gt;Please elaborate on "run it with Splunk" and say what you found in python.log.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 21:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595482#M10600</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-04-26T21:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where does Splunk store output of Python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595483#M10601</link>
      <description>&lt;P&gt;By "Run with Splunk" I mean to run &lt;SPAN class=""&gt;as a custom scripted input&lt;/SPAN&gt;&amp;nbsp;(settings &amp;gt; data inputs &amp;gt; scripts). I'm not sure where to find python.log.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 21:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595483#M10601</guid>
      <dc:creator>mrrci</dc:creator>
      <dc:date>2022-04-26T21:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where does Splunk store output of Python script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595501#M10602</link>
      <description>&lt;P&gt;The python log is at $SPLUNK_HOME/var/log/splunk/python.log.&amp;nbsp; Or, in SPL, &lt;FONT face="courier new,courier"&gt;index=_internal source=*python.log&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 00:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Where-does-Splunk-store-output-of-Python-script/m-p/595501#M10602</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-04-27T00:22:36Z</dc:date>
    </item>
  </channel>
</rss>

