<?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: Splunk running script advice in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28344#M4831</link>
    <description>&lt;P&gt;Yeah this appears to be working. Thanks for the answer.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2011 12:53:17 GMT</pubDate>
    <dc:creator>MHibbin</dc:creator>
    <dc:date>2011-12-05T12:53:17Z</dc:date>
    <item>
      <title>Splunk running script advice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28341#M4828</link>
      <description>&lt;P&gt;Hi SplunkBase,&lt;/P&gt;

&lt;P&gt;How do I make Splunk start a script (not as an input)? -the script generates log files which I can then monitor in Splunk. Or, is there a way of making the script run as an input continuously (i.e. not running on intervals)?&lt;/P&gt;

&lt;P&gt;Basically, I want the script to run when ever Splunk is, and would rather not add an entry to cron (making it safer when distributing in an environment).&lt;/P&gt;

&lt;P&gt;Any advice welcome on best practices. &lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 11:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28341#M4828</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-05T11:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk running script advice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28342#M4829</link>
      <description>&lt;P&gt;I believe if you set it as a scripted input with an interval of -1 (via config only, GUI won't accept a -1 value) then Splunk will keep it running and restart it if it isn't running.&lt;BR /&gt;
As long as it is only doing file output then Splunk won't have anything to index from it and it can happily generate log data. Saying that you might find it worthwhile generating some stdoutput from it for logging purposes (direct it to _internal for debugging your script)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 11:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28342#M4829</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-12-05T11:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk running script advice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28343#M4830</link>
      <description>&lt;P&gt;Thanks for getting back to me. I'll give this a try.&lt;/P&gt;

&lt;P&gt;Thanks for the suggestion about stdout, I have already set up info/error codes for this though. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 12:38:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28343#M4830</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-05T12:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk running script advice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28344#M4831</link>
      <description>&lt;P&gt;Yeah this appears to be working. Thanks for the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 12:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28344#M4831</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-05T12:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk running script advice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28345#M4832</link>
      <description>&lt;P&gt;What if you a) want the script to run just once and b) don't want to actually import the script's output? This happens if, for instance, one is managing a Splunk single-instance server remotely and need to run an app's setup script (e.g. the Splunk Reference App - PAS from Splunkbase needs its bin/install-addons.sh to be run).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 15:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-running-script-advice/m-p/28345#M4832</guid>
      <dc:creator>DUThibault</dc:creator>
      <dc:date>2017-09-06T15:06:43Z</dc:date>
    </item>
  </channel>
</rss>

