<?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: Will Splunk run a modular input using system Python on a Universal Forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354550#M64853</link>
    <description>&lt;P&gt;Yes, it will.&lt;/P&gt;

&lt;P&gt;Splunk will invoke the system's Python interpreter and run the modular input. Splunk's libraries will not be available (e.g. you won't be able to import splunk in Python) but the the forwarder will attempt to run the input just as it would on a Splunk install that was bundled with Python.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 07:56:28 GMT</pubDate>
    <dc:creator>LukeMurphey</dc:creator>
    <dc:date>2017-09-22T07:56:28Z</dc:date>
    <item>
      <title>Will Splunk run a modular input using system Python on a Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354549#M64852</link>
      <description>&lt;P&gt;If I have a modular input written in Python, will Splunk attempt to execute it on a Universal Forwarder if the host has Python installed?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354549#M64852</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2017-09-22T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Will Splunk run a modular input using system Python on a Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354550#M64853</link>
      <description>&lt;P&gt;Yes, it will.&lt;/P&gt;

&lt;P&gt;Splunk will invoke the system's Python interpreter and run the modular input. Splunk's libraries will not be available (e.g. you won't be able to import splunk in Python) but the the forwarder will attempt to run the input just as it would on a Splunk install that was bundled with Python.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354550#M64853</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2017-09-22T07:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Will Splunk run a modular input using system Python on a Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354551#M64854</link>
      <description>&lt;P&gt;precisely "how" will splunk invoke the system's Python interpreter?  I have python 3 and python 2 installed on the system, and the &lt;CODE&gt;python&lt;/CODE&gt; calls python 3 because how how the PATH is setup.  Can I somehow override to tell splunk which python to use?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354551#M64854</guid>
      <dc:creator>joshuapetitt</dc:creator>
      <dc:date>2018-07-17T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Will Splunk run a modular input using system Python on a Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354552#M64855</link>
      <description>&lt;P&gt;@joshuapetit: I don't exactly know but I will suspect that Splunk is calling the first interpreter per the PATH setup. You might want to try setting the PATH such that other interpreter is first and seeing if Splunk uses that one instead.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354552#M64855</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2018-07-17T19:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Will Splunk run a modular input using system Python on a Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354553#M64856</link>
      <description>&lt;P&gt;Thanks for the reply, I'm trying to do that very thing.  Although other parts of the system rely on python 3 being first in the PATH.  Is there a way I can set the PATH variable for just the Universal Forwarder?  Perhaps via a .conf file?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354553#M64856</guid>
      <dc:creator>joshuapetitt</dc:creator>
      <dc:date>2018-07-17T19:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Will Splunk run a modular input using system Python on a Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354554#M64857</link>
      <description>&lt;P&gt;You should be able to set the PATH via &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.2/Admin/Splunk-launchconf"&gt;splunk-launch.conf&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Alternatively, it could likely be tested just by doing a local install of Splunk to see if Splunk does indeed use the PATH. In that case, you could likely just sudo to root, adjust the path and then start Splunk manually to see which Python it uses.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:32:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354554#M64857</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2018-07-17T19:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Will Splunk run a modular input using system Python on a Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354555#M64858</link>
      <description>&lt;P&gt;I've edited the system PATH and Splunk does just call the first &lt;CODE&gt;python&lt;/CODE&gt; that is found in the path.  I'm trying now to set the path in splunk-launch.conf but am not having any success at this.  I've started a new question about that here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/672234/splunk-universal-forwarder-how-to-set-path-environ.html"&gt;https://answers.splunk.com/answers/672234/splunk-universal-forwarder-how-to-set-path-environ.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Will-Splunk-run-a-modular-input-using-system-Python-on-a/m-p/354555#M64858</guid>
      <dc:creator>joshuapetitt</dc:creator>
      <dc:date>2018-07-17T19:40:38Z</dc:date>
    </item>
  </channel>
</rss>

