<?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: Python 3 modular input on a universal forwarder version 8 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485962#M83201</link>
    <description>&lt;P&gt;This has been filed as a bug and is slated to be fixed in 8.0.4, according to SPL-183467.&lt;BR /&gt;
Splunk UF should use the python in your PATH.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 06:55:34 GMT</pubDate>
    <dc:creator>mbjerkeland_spl</dc:creator>
    <dc:date>2020-04-28T06:55:34Z</dc:date>
    <item>
      <title>Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485953#M83192</link>
      <description>&lt;P&gt;In light to the discontinuation of Python 2.7 we have upgraded both our universal forwarders (to version &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; and our system python (to version 3.7). Unfortunately, the new UF does no longer seem to want to use the system python. In the logs it complains that ik cannot find C:\Program Files\SplunkForwarder\bin\Python3 which indeed does not exist, nor should it as this is a universal forwarder. Python 3 is in the PATH.&lt;/P&gt;

&lt;P&gt;How do I get the UF to work with system python 3?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 17:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485953#M83192</guid>
      <dc:creator>jthunnissen</dc:creator>
      <dc:date>2020-01-21T17:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485954#M83193</link>
      <description>&lt;P&gt;Hm, this sounds like a bug. I suppose in implementing Python versioning support, we inadvertently excluded system pythons by being very explicit about which Python interpreter we're going to execute.&lt;/P&gt;

&lt;P&gt;No promises yet, but perhaps on the Universal Forwarder we can attempt to just execute whichever "python" is in $PATH...&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 00:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485954#M83193</guid>
      <dc:creator>amrit</dc:creator>
      <dc:date>2020-02-12T00:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485955#M83194</link>
      <description>&lt;P&gt;Hi Amrit, &lt;/P&gt;

&lt;P&gt;any update o this? I'm affected by this issue too is there any workaround?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Andrea&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 14:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485955#M83194</guid>
      <dc:creator>andreaghetti</dc:creator>
      <dc:date>2020-03-04T14:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485956#M83195</link>
      <description>&lt;P&gt;The following solution seemed to work at first. But if prevents Splunk from starting. Splunk support is currently still working on this issue for me.&lt;/P&gt;

&lt;P&gt;server.conf:&lt;BR /&gt;
[general]&lt;BR /&gt;
python.version = force_python3&lt;/P&gt;

&lt;P&gt;-my python 3.7.4 , which is in C:\Python3&lt;/P&gt;

&lt;P&gt;-copy custom python.exe to C:\Program Files\SplunkUniversalForwarder\bin\Python3.exe&lt;/P&gt;

&lt;P&gt;in C:\Program Files\SplunkUniversalForwarder\etc\splunk-launch.conf&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;PYTHONPATH=C:\Python3\lib&lt;BR /&gt;
&amp;lt;&amp;lt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;UL&gt;
&lt;LI&gt;restart splunk and custom python was picked up&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;splunk cmd python --version&lt;BR /&gt;
Python 3.7.4&lt;BR /&gt;
,I contacte Splunk support and the following solution worked for me:&lt;/P&gt;

&lt;P&gt;server.conf:&lt;BR /&gt;
[general]&lt;BR /&gt;
python.version = force_python3&lt;/P&gt;

&lt;P&gt;-my python 3.7.4 , which is in C:\Python3&lt;/P&gt;

&lt;P&gt;-copy custom python.exe to C:\Program Files\SplunkUniversalForwarder\bin\Python3.exe&lt;/P&gt;

&lt;P&gt;in C:\Program Files\SplunkUniversalForwarder\etc\splunk-launch.conf&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;PYTHONPATH=C:\Python3\lib&lt;BR /&gt;
&amp;lt;&amp;lt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;UL&gt;
&lt;LI&gt;restart splunk and custom python was picked up&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;splunk cmd python --version&lt;BR /&gt;
Python 3.7.4&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 12:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485956#M83195</guid>
      <dc:creator>jthunnissen</dc:creator>
      <dc:date>2020-03-05T12:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485957#M83196</link>
      <description>&lt;P&gt;This has been filed internally as SPL-183467. Please stay tuned.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 23:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485957#M83196</guid>
      <dc:creator>amrit</dc:creator>
      <dc:date>2020-03-05T23:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485958#M83197</link>
      <description>&lt;P&gt;Is there any progress? The 'accepted answer' prevents Splunk from even starting. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:33:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485958#M83197</guid>
      <dc:creator>BGarber42</dc:creator>
      <dc:date>2020-04-15T15:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485959#M83198</link>
      <description>&lt;P&gt;The solution above worked for me. I tried it with both python2 and python3 and they worked.&lt;BR /&gt;
To use Python2 I did not put the force_python3 value in server.conf &lt;BR /&gt;
Are you sure those settings are the reason why your splunk universal forwarder is not starting? &lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 07:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485959#M83198</guid>
      <dc:creator>andreaghetti</dc:creator>
      <dc:date>2020-04-16T07:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485960#M83199</link>
      <description>&lt;P&gt;Does is work for you when you use only python 3 (ergo force_python3) and then restart  the UF? For me it fails fatally.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 08:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485960#M83199</guid>
      <dc:creator>jthunnissen</dc:creator>
      <dc:date>2020-04-16T08:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485961#M83200</link>
      <description>&lt;P&gt;Yes, when trying the workaround above it failed during a &lt;CODE&gt;./splunk start&lt;/CODE&gt; even with &lt;CODE&gt;PYTHONPATH&lt;/CODE&gt; set to the system path as it was trying to load Python library files from &lt;CODE&gt;$SPLUNK_HOME&lt;/CODE&gt; which didn't exist. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 16:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485961#M83200</guid>
      <dc:creator>BGarber42</dc:creator>
      <dc:date>2020-04-16T16:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485962#M83201</link>
      <description>&lt;P&gt;This has been filed as a bug and is slated to be fixed in 8.0.4, according to SPL-183467.&lt;BR /&gt;
Splunk UF should use the python in your PATH.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 06:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485962#M83201</guid>
      <dc:creator>mbjerkeland_spl</dc:creator>
      <dc:date>2020-04-28T06:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python 3 modular input on a universal forwarder version 8</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485963#M83202</link>
      <description>&lt;P&gt;The fix is in 8.0.4 which is now available&lt;/P&gt;

&lt;P&gt;May need to set python.version in server.conf (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf&lt;/A&gt;)&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;python.version =&lt;BR /&gt;
{python2|python3|force_python3}&lt;BR /&gt;
* For Python scripts only, sets the default Python version to use.&lt;BR /&gt;
* Can be overridden by other 'python.version' values elsewhere,&lt;BR /&gt;
with the   following exception:&lt;BR /&gt;
* If you set to "force_python3", the system always uses Python 3, and&lt;BR /&gt;
ignores   'python.version' values that&lt;BR /&gt;
you set elsewhere.&lt;BR /&gt;
* Default: python2&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This will determine the name of the python executable it looks for when running python commands&lt;BR /&gt;
(relevant python install needs to be in PATH) &lt;/P&gt;

&lt;P&gt;If your instance uses python.exe, &lt;BR /&gt;
python.version needs to be set to a value of:-&lt;BR /&gt;
 unspecified &lt;/P&gt;

&lt;P&gt;This is not  documented in current docs.&lt;/P&gt;

&lt;P&gt;Set python.version accordingly :&lt;/P&gt;

&lt;P&gt;python2        -  python install uses python2/python2.exe&lt;BR /&gt;
python3        -  python install uses python3/python3.exe&lt;BR /&gt;
unspecified  -  python install uses python/python.exe&lt;/P&gt;

&lt;P&gt;Tested just now and it works.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-3-modular-input-on-a-universal-forwarder-version-8/m-p/485963#M83202</guid>
      <dc:creator>jbarlow_splunk</dc:creator>
      <dc:date>2020-09-30T05:29:52Z</dc:date>
    </item>
  </channel>
</rss>

