<?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 output *results* in script in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92060#M1285</link>
    <description>&lt;P&gt;We are using a Perl script to create tickets when a given event meets a certain threshold.  How can we include the results of the search in the ticket?  This seems like it should be pretty easy, but darned if I can figure out how to get at that data.  Otherwise, all we have is a ticket with a link to the search we have to click on to get at the information we seek.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2011 14:29:11 GMT</pubDate>
    <dc:creator>netwrkr</dc:creator>
    <dc:date>2011-04-29T14:29:11Z</dc:date>
    <item>
      <title>output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92060#M1285</link>
      <description>&lt;P&gt;We are using a Perl script to create tickets when a given event meets a certain threshold.  How can we include the results of the search in the ticket?  This seems like it should be pretty easy, but darned if I can figure out how to get at that data.  Otherwise, all we have is a ticket with a link to the search we have to click on to get at the information we seek.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92060#M1285</guid>
      <dc:creator>netwrkr</dc:creator>
      <dc:date>2011-04-29T14:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92061#M1286</link>
      <description>&lt;P&gt;Check this out :&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/wiki/Community:Use_Splunk_alerts_with_scripts_to_create_a_ticket_in_your_ticketing_system" target="_blank"&gt;http://www.splunk.com/wiki/Community:Use_Splunk_alerts_with_scripts_to_create_a_ticket_in_your_ticketing_system&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92061#M1286</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2020-09-28T09:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92062#M1287</link>
      <description>&lt;P&gt;been there, done that.  It doesn't include the &lt;EM&gt;results&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92062#M1287</guid>
      <dc:creator>netwrkr</dc:creator>
      <dc:date>2011-04-29T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92063#M1288</link>
      <description>&lt;P&gt;Then it might be the way you are handling the variables. That example was Bash, so $1, $2 etc are defined as positional parameters passed to the script. This would be represented differently in Perl. My Perl skills are not that great , but if I'm not mistaken they would be something like $ARGV[1],$ARGV[2],  etc.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92063#M1288</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-04-29T14:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92064#M1289</link>
      <description>&lt;P&gt;Which of the available variables will give me the results of the search?  Not the fact the alert fired but the OUTPUT of the search.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 17:59:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92064#M1289</guid>
      <dc:creator>netwrkr</dc:creator>
      <dc:date>2011-04-29T17:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92065#M1290</link>
      <description>&lt;P&gt;I use an email alert for grabbing the full search result to send to our ticketing system. Some of my alrets send the results as a pdf. This was simple and cleaner to interface with CA's service desk application. &lt;/P&gt;

&lt;P&gt;I think you would have to cat $8 , but I bet its format is a not very pretty since it contains raw results&lt;/P&gt;

&lt;P&gt;$8= File where the results for this search are stored (contains raw results)&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 18:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92065#M1290</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-04-29T18:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92066#M1291</link>
      <description>&lt;P&gt;From the link in my answer post:&lt;BR /&gt;&lt;BR /&gt;
$8 = path to a file where raw results of this search are located (as opposed to passing the actual results into the ticket--this could be a lot of data).&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 18:29:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92066#M1291</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-04-29T18:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92067#M1292</link>
      <description>&lt;P&gt;Have you had any luck with this? I am looking at the same thing.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 13:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92067#M1292</guid>
      <dc:creator>dcparker</dc:creator>
      <dc:date>2013-03-20T13:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92068#M1293</link>
      <description>&lt;P&gt;Do there is no other way to get the raw data, and read them manually in the script &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
In which form are they stored ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 11:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92068#M1293</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2014-08-04T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: output *results* in script</title>
      <link>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92069#M1294</link>
      <description>&lt;P&gt;I've found something interesting there... &lt;BR /&gt;
&lt;A href="https://github.com/georgestarcher/Splunk-Alert/blob/master/targetlist.py"&gt;https://github.com/georgestarcher/Splunk-Alert/blob/master/targetlist.py&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.georgestarcher.com/splunk-alert-scripts-automating-control/"&gt;http://www.georgestarcher.com/splunk-alert-scripts-automating-control/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The splunk doc is really missing some examples...&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/output-results-in-script/m-p/92069#M1294</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2014-08-04T14:08:56Z</dc:date>
    </item>
  </channel>
</rss>

