<?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 Can I specify modular Input introspection python version at the script level? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Can-I-specify-modular-Input-introspection-python-version-at-the/m-p/467288#M8428</link>
    <description>&lt;P&gt;I have put together a python Splunk Modular Input that depends on python3 to execute and works just fine if I have python3 as the default server level python version to use (via &lt;CODE&gt;server.conf&lt;/CODE&gt; - &lt;CODE&gt;python.version = python3&lt;/CODE&gt;).&lt;/P&gt;
&lt;P&gt;I'm distributing this to various Splunk users and not all of them have this enabled yet. When I try and install this on one of those instances, the introspection fails with syntax errors (Python3 specific syntax) and I can not get the modular input to initialize.&lt;/P&gt;
&lt;P&gt;Is there a way to tell the introspection which python to use when initializing the modular input (within the script itself)? I have tried adding the above stanza and setting to defaults/inputs.conf with no luck.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 18:19:46 GMT</pubDate>
    <dc:creator>byeckley</dc:creator>
    <dc:date>2020-06-07T18:19:46Z</dc:date>
    <item>
      <title>Can I specify modular Input introspection python version at the script level?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Can-I-specify-modular-Input-introspection-python-version-at-the/m-p/467288#M8428</link>
      <description>&lt;P&gt;I have put together a python Splunk Modular Input that depends on python3 to execute and works just fine if I have python3 as the default server level python version to use (via &lt;CODE&gt;server.conf&lt;/CODE&gt; - &lt;CODE&gt;python.version = python3&lt;/CODE&gt;).&lt;/P&gt;
&lt;P&gt;I'm distributing this to various Splunk users and not all of them have this enabled yet. When I try and install this on one of those instances, the introspection fails with syntax errors (Python3 specific syntax) and I can not get the modular input to initialize.&lt;/P&gt;
&lt;P&gt;Is there a way to tell the introspection which python to use when initializing the modular input (within the script itself)? I have tried adding the above stanza and setting to defaults/inputs.conf with no luck.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Can-I-specify-modular-Input-introspection-python-version-at-the/m-p/467288#M8428</guid>
      <dc:creator>byeckley</dc:creator>
      <dc:date>2020-06-07T18:19:46Z</dc:date>
    </item>
  </channel>
</rss>

