<?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: Triggering External Script on Form Submission in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Triggering-External-Script-on-Form-Submission/m-p/54910#M10669</link>
    <description>&lt;P&gt;As a first step towards building a command to do this, I wrote a simple generating command that produces some random strings in a few fields which splunk would process.  It's called "randomstrings".  I just can't seem to get splunk to fire off the command though: I can see the command's config via the browser and I'm logging the invocations, it just doesn't seem to be getting started even with &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; (I have supports_getinfo set in the command.conf.&lt;/P&gt;

&lt;P&gt;The command works when I run it from the command line.  Where can I look to see why splunk won't give it some love too?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Sep 2012 07:38:39 GMT</pubDate>
    <dc:creator>bgg</dc:creator>
    <dc:date>2012-09-19T07:38:39Z</dc:date>
    <item>
      <title>Triggering External Script on Form Submission</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Triggering-External-Script-on-Form-Submission/m-p/54908#M10667</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;I have a slightly odd ball request, and I hope you guys can help me out. &lt;/P&gt;

&lt;P&gt;Once of our main uses for Splunk is operational dashboards, we are able to show a lot of interesting information about how our network services are performing by analysing a variety of sources. However there are times where I need to drill down on the network an collect additional information about something very specific and in real time. As such I would like to trigger an additional "collection" when a form is submitted, this script would inject records into my Splunk index and my dashboard would have a realtime search for this datasource. Note that most of the time I would not collect this data for a number of reasons, mostly to do with capacity of management networks and device tolerance to intensive polling.&lt;/P&gt;

&lt;P&gt;By way of example, my dashboard might find that I device failed its configuration, I would like to be able to have a form that does detailed analysis on the device, when that form is submitted a script may ping the device an log its output to splunk. The form has a realtime search for these ping results.&lt;/P&gt;

&lt;P&gt;I can think of a few ways of doing this, most of them are ugly, im interested in your ideas?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Rod.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2012 04:12:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Triggering-External-Script-on-Form-Submission/m-p/54908#M10667</guid>
      <dc:creator>rtelford</dc:creator>
      <dc:date>2012-09-08T04:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering External Script on Form Submission</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Triggering-External-Script-on-Form-Submission/m-p/54909#M10668</link>
      <description>&lt;P&gt;Sounds like you need a custom Splunk command. &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/SearchScripts"&gt;Docs here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I recently had a request to have Splunk interact with a file on the server, eliminating the need to edit the file via the CLI. As this would have to be on a potentially regular basis I did this with a Form so the user could select field values, and then pipe the populating search to the custom command with the scripts arguments being the fields selected by the user.&lt;/P&gt;

&lt;P&gt;Hope this helps you on your way. &lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2012 10:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Triggering-External-Script-on-Form-Submission/m-p/54909#M10668</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-09-08T10:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering External Script on Form Submission</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Triggering-External-Script-on-Form-Submission/m-p/54910#M10669</link>
      <description>&lt;P&gt;As a first step towards building a command to do this, I wrote a simple generating command that produces some random strings in a few fields which splunk would process.  It's called "randomstrings".  I just can't seem to get splunk to fire off the command though: I can see the command's config via the browser and I'm logging the invocations, it just doesn't seem to be getting started even with &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; (I have supports_getinfo set in the command.conf.&lt;/P&gt;

&lt;P&gt;The command works when I run it from the command line.  Where can I look to see why splunk won't give it some love too?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 07:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Triggering-External-Script-on-Form-Submission/m-p/54910#M10669</guid>
      <dc:creator>bgg</dc:creator>
      <dc:date>2012-09-19T07:38:39Z</dc:date>
    </item>
  </channel>
</rss>

