<?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: passing host field in custom script in alert. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/passing-host-field-in-custom-script-in-alert/m-p/403862#M116857</link>
    <description>&lt;P&gt;Is this custom script for running from an alert? &lt;/P&gt;

&lt;P&gt;Are you just trying to run a script or have you created a custom alert action app and you are trying to create the script? The former is being deprecated and the later is the preferred way. &lt;/P&gt;

&lt;P&gt;If you want to send a value to the script, you will have to send it in with the results ( &lt;CODE&gt;... | eval hostname=thishost&lt;/CODE&gt; ) as there are no parameters that you can send on the "command line".&lt;/P&gt;</description>
    <pubDate>Fri, 18 May 2018 12:24:44 GMT</pubDate>
    <dc:creator>cpetterborg</dc:creator>
    <dc:date>2018-05-18T12:24:44Z</dc:date>
    <item>
      <title>passing host field in custom script in alert.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-host-field-in-custom-script-in-alert/m-p/403861#M116856</link>
      <description>&lt;P&gt;I am trying to run a custom shell script with the hostname returned in my results. How to get the hostname field passed on to the custom script. &lt;BR /&gt;
I tried "1.sh $result.host$" which is not working.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 09:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-host-field-in-custom-script-in-alert/m-p/403861#M116856</guid>
      <dc:creator>praneshjan</dc:creator>
      <dc:date>2018-05-18T09:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: passing host field in custom script in alert.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-host-field-in-custom-script-in-alert/m-p/403862#M116857</link>
      <description>&lt;P&gt;Is this custom script for running from an alert? &lt;/P&gt;

&lt;P&gt;Are you just trying to run a script or have you created a custom alert action app and you are trying to create the script? The former is being deprecated and the later is the preferred way. &lt;/P&gt;

&lt;P&gt;If you want to send a value to the script, you will have to send it in with the results ( &lt;CODE&gt;... | eval hostname=thishost&lt;/CODE&gt; ) as there are no parameters that you can send on the "command line".&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 12:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-host-field-in-custom-script-in-alert/m-p/403862#M116857</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-05-18T12:24:44Z</dc:date>
    </item>
  </channel>
</rss>

