<?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: Any solid example of a scripted input on Windows? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/106000#M22293</link>
    <description>&lt;P&gt;Also note that if you are calling a python script you'll similarly want to make sure that path within it are set in a way that Windows can handle along the lines of &lt;BR /&gt;
theFile = open(os.path.join(os.environ["SPLUNK_HOME"], 'etc', 'apps', 'bmon-eventgen', 'bin', 'sample', 'noise_apache.sample'),'r')&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:24:42 GMT</pubDate>
    <dc:creator>jflomenberg</dc:creator>
    <dc:date>2020-09-28T09:24:42Z</dc:date>
    <item>
      <title>Any solid example of a scripted input on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/105997#M22290</link>
      <description>&lt;P&gt;..as in, I have a .cmd or a .bat file that I would like to use as a scripted input.&lt;/P&gt;

&lt;P&gt;I am not able to find any solid examples of how the script:// stanza within my inputs.conf file looks like that actually works.&lt;/P&gt;

&lt;P&gt;Anyone do this already that is willing to share their stanza?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2010 06:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/105997#M22290</guid>
      <dc:creator>maverick</dc:creator>
      <dc:date>2010-12-17T06:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Any solid example of a scripted input on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/105998#M22291</link>
      <description>&lt;P&gt;[script://$SPLUNK_HOME\etc\apps\myapp\bin\myscript.bat]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = myindex&lt;BR /&gt;
interval = 3600&lt;BR /&gt;
sourcetype = mysourcetype&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2010 23:56:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/105998#M22291</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-12-17T23:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Any solid example of a scripted input on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/105999#M22292</link>
      <description>&lt;P&gt;The Splunk IP Watchlist app has a simple bat file to retrieve IP addresses and uses scripted input to call this bat file to gather the data. It's a simple approach as I'm not much of a DOS style script writer.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunkbase.splunk.com/apps/All/4.x/app:Global+Threat+Landscape%7FIP+Watch+list+V2" rel="nofollow"&gt;http://splunkbase.splunk.com/apps/All/4.x/app:Global+Threat+Landscape%7FIP+Watch+list+V2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Dec 2010 03:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/105999#M22292</guid>
      <dc:creator>ndoshi</dc:creator>
      <dc:date>2010-12-18T03:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Any solid example of a scripted input on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/106000#M22293</link>
      <description>&lt;P&gt;Also note that if you are calling a python script you'll similarly want to make sure that path within it are set in a way that Windows can handle along the lines of &lt;BR /&gt;
theFile = open(os.path.join(os.environ["SPLUNK_HOME"], 'etc', 'apps', 'bmon-eventgen', 'bin', 'sample', 'noise_apache.sample'),'r')&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Any-solid-example-of-a-scripted-input-on-Windows/m-p/106000#M22293</guid>
      <dc:creator>jflomenberg</dc:creator>
      <dc:date>2020-09-28T09:24:42Z</dc:date>
    </item>
  </channel>
</rss>

