<?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: Server Side Execution in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Server-Side-Execution/m-p/53446#M12998</link>
    <description>&lt;P&gt;you could also define a scripted alert that fires off a script using search results when a set condition is met:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Configurescriptedalerts" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Configurescriptedalerts&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2011 23:51:57 GMT</pubDate>
    <dc:creator>piebob</dc:creator>
    <dc:date>2011-03-03T23:51:57Z</dc:date>
    <item>
      <title>Server Side Execution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Server-Side-Execution/m-p/53444#M12996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;does Splunk has a possibility to run server side scripts (python, ruby) based on a splunk search result? The search output should be the input (e.g. a number or list of numbers) for the server side script.&lt;/P&gt;

&lt;P&gt;Something like this:
... | fields X | my_server_script X&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2011 22:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Server-Side-Execution/m-p/53444#M12996</guid>
      <dc:creator>lwalhoefer</dc:creator>
      <dc:date>2011-03-03T22:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Server Side Execution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Server-Side-Execution/m-p/53445#M12997</link>
      <description>&lt;P&gt;This should be possible by defining a custom search command.  Your new search command extends the Splunk search language, and Splunk uses your new command by calling the script that implements it.  Some of the existing commands in Splunk (iplocation) are implemented using this facility.  These scripts are currently expected to be python scripts.  A "runshellscript" command exists in my $SPLUNK_HOME/etc/apps/search/default/commands.conf that looks somewhat interesting.&lt;/P&gt;

&lt;P&gt;Your command would receive a stdin dump of the current search results, which you could do as you please with.&lt;/P&gt;

&lt;P&gt;Docs at &lt;A href="http://www.splunk.com/base/Documentation/latest/SearchReference/Aboutcustomsearchcommands" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/SearchReference/Aboutcustomsearchcommands&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2011 22:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Server-Side-Execution/m-p/53445#M12997</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-03-03T22:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Server Side Execution</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Server-Side-Execution/m-p/53446#M12998</link>
      <description>&lt;P&gt;you could also define a scripted alert that fires off a script using search results when a set condition is met:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Configurescriptedalerts" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Configurescriptedalerts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2011 23:51:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Server-Side-Execution/m-p/53446#M12998</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2011-03-03T23:51:57Z</dc:date>
    </item>
  </channel>
</rss>

