<?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 use a python script on a Windows universal forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126358#M26004</link>
    <description>&lt;P&gt;os: windows 7-64bit / splunk 6.2.0 / universal forwarder 6.2.0&lt;/P&gt;

&lt;H1&gt;current my python inputs.conf&lt;/H1&gt;

&lt;P&gt;&lt;CODE&gt;[script://.\bin\test\test.py]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;i know that universal forwarder doesn't include python bundle, but i want python script on the universal forwarder.&lt;/P&gt;

&lt;P&gt;i tried python install and set &lt;CODE&gt;[script://python_path\python .\bin\test\test.py]&lt;/CODE&gt;, but it failed.&lt;/P&gt;

&lt;P&gt;Is there any way?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Feb 2015 03:38:02 GMT</pubDate>
    <dc:creator>ryuch2002</dc:creator>
    <dc:date>2015-02-04T03:38:02Z</dc:date>
    <item>
      <title>Can I use a python script on a Windows universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126358#M26004</link>
      <description>&lt;P&gt;os: windows 7-64bit / splunk 6.2.0 / universal forwarder 6.2.0&lt;/P&gt;

&lt;H1&gt;current my python inputs.conf&lt;/H1&gt;

&lt;P&gt;&lt;CODE&gt;[script://.\bin\test\test.py]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;i know that universal forwarder doesn't include python bundle, but i want python script on the universal forwarder.&lt;/P&gt;

&lt;P&gt;i tried python install and set &lt;CODE&gt;[script://python_path\python .\bin\test\test.py]&lt;/CODE&gt;, but it failed.&lt;/P&gt;

&lt;P&gt;Is there any way?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 03:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126358#M26004</guid>
      <dc:creator>ryuch2002</dc:creator>
      <dc:date>2015-02-04T03:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a python script on a Windows universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126359#M26005</link>
      <description>&lt;P&gt;Yes! You can run Python scripts on the UF. But, you need to launch your script from within a shell script (or BAT script on Windows).&lt;/P&gt;

&lt;P&gt;So your inputs.conf would be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://.\bin\test\launchtest.sh]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And launchtest.sh would contain something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/sh
# launch the python script 
# you could include environment variables, more specific path names, etc as needed
./test.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sure that launchtest.sh is executable. Thats's all you need!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 04:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126359#M26005</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-02-04T04:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a python script on a Windows universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126360#M26006</link>
      <description>&lt;P&gt;Thank you for answers.&lt;BR /&gt;
Fixed an issue thanks to you.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2015 01:35:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126360#M26006</guid>
      <dc:creator>ryuch2002</dc:creator>
      <dc:date>2015-02-05T01:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a python script on a Windows universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126361#M26007</link>
      <description>&lt;P&gt;Do we need to install Python to run the script? Or UF comes with Python interpreter?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126361#M26007</guid>
      <dc:creator>meenuvn</dc:creator>
      <dc:date>2016-06-14T21:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a python script on a Windows universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126362#M26008</link>
      <description>&lt;P&gt;I installed Python in windows, and set PYTHON_HOME. try it.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 23:53:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126362#M26008</guid>
      <dc:creator>ryuch2002</dc:creator>
      <dc:date>2016-06-14T23:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a python script on a Windows universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126363#M26009</link>
      <description>&lt;P&gt;could you please provide me steps to run the python script on universal forwarder ,since I am new to splunk I don't know how to run .bat file in windows .please provide all configuration details like input.conf  and other configuration file.&lt;/P&gt;

&lt;P&gt;I would be great help for me  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-a-python-script-on-a-Windows-universal-forwarder/m-p/126363#M26009</guid>
      <dc:creator>ajitshukla</dc:creator>
      <dc:date>2019-01-29T13:05:26Z</dc:date>
    </item>
  </channel>
</rss>

