<?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: Scripting with Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181824#M36453</link>
    <description>&lt;P&gt;Is there a way to set it up so all of the forwarders run the script?&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2015 17:24:12 GMT</pubDate>
    <dc:creator>akelly4</dc:creator>
    <dc:date>2015-03-20T17:24:12Z</dc:date>
    <item>
      <title>Scripting with Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181822#M36451</link>
      <description>&lt;P&gt;I'm trying to setup Splunk so it pulls the IP, hostname, and original install date off of all servers that have the splunk forwarder installed.&lt;/P&gt;

&lt;P&gt;I have the command I need to run in order to pull this data systeminfo | findstr /i "Host original IP".&lt;/P&gt;

&lt;P&gt;It seems like it should be very simple to set this up just going to settings &amp;gt; data inputs &amp;gt; scripts&lt;/P&gt;

&lt;P&gt;Couple of questions. In order to get this to run via the command prompt or powershell how do I add the script in the $SPLUNK_HOME\bin\scripts folder?&lt;/P&gt;

&lt;P&gt;Is there anything special I need to take into consideration? I can't find much documentation on this so I was looking for any guidance to get this to work.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 15:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181822#M36451</guid>
      <dc:creator>akelly4</dc:creator>
      <dc:date>2015-03-20T15:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting with Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181823#M36452</link>
      <description>&lt;P&gt;Anything you put in $SPLUNK_HOME/bin/scripts runs on the local Splunk server, not on the forwarders.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 17:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181823#M36452</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-03-20T17:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting with Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181824#M36453</link>
      <description>&lt;P&gt;Is there a way to set it up so all of the forwarders run the script?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 17:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181824#M36453</guid>
      <dc:creator>akelly4</dc:creator>
      <dc:date>2015-03-20T17:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting with Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181825#M36454</link>
      <description>&lt;P&gt;Is &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/AdvancedDev/ScriptedInputsIntro"&gt;this&lt;/A&gt; the level of detail you are looking for? If you find anything essential missing from this documentation, please use the comment form at the bottom of each page to provide your feedback.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 17:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181825#M36454</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2015-03-20T17:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting with Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181826#M36455</link>
      <description>&lt;P&gt;The think the OP is looking to run a script on each monitored system and have the results reported by the Splunk Forwarder.  I'm pretty sure he's going about it the wrong way, but don't know the right way.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 17:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181826#M36455</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-03-20T17:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting with Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181827#M36456</link>
      <description>&lt;P&gt;I think that's exactly how you would go about it.&lt;/P&gt;

&lt;P&gt;1) create a script that does what you need it to do and writes to stdout (account for platform specifics)&lt;BR /&gt;
2) package the script in an app as a scripted input, decide how often to run it&lt;BR /&gt;
3) deploy it to the forwarders (monitored systems) and watch the script results come back into the indexer(s) once the scripts execute&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 19:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-with-Splunk/m-p/181827#M36456</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2015-03-20T19:39:59Z</dc:date>
    </item>
  </channel>
</rss>

