<?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: Looking for solution of one alert calling script to execute second saved search in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259167#M4809</link>
    <description>&lt;P&gt;subsearch is the solution for me. I had never really used it before. That is exactly what I wanted. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2016 05:16:04 GMT</pubDate>
    <dc:creator>burwell</dc:creator>
    <dc:date>2016-05-20T05:16:04Z</dc:date>
    <item>
      <title>Looking for solution of one alert calling script to execute second saved search</title>
      <link>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259165#M4807</link>
      <description>&lt;P&gt;We want to do a search every minute on some logs. We want to identify those hosts whose events have http_code=5xx more than one percent of the time. And we want to see the actual events.&lt;/P&gt;

&lt;P&gt;What I envisioned was one alert that would count the total events, count the 5xx events and when 5xx/total &amp;gt; 1% would alert and call a script that would perform a second search on the very same time event and show us the hosts and events that are involved.&lt;/P&gt;

&lt;P&gt;We tried various things including evenstats, but it is too slow trying to do this in one search every minute. The search took too long.&lt;/P&gt;

&lt;P&gt;I'm looking for a script called by search1 where I can call a named saved search2 with earliest/latest that I get from search1 and then have it alert.&lt;/P&gt;

&lt;P&gt;Or maybe this is too complicated and there is a simpler way to go about this. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 00:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259165#M4807</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2016-05-20T00:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for solution of one alert calling script to execute second saved search</title>
      <link>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259166#M4808</link>
      <description>&lt;P&gt;Do you need to see all the events containing a 5xx error or would a sample do? if so, experiment with something like&lt;/P&gt;

&lt;P&gt;| stats latest(_raw) as sample_event&lt;/P&gt;

&lt;P&gt;If that's no good, I might suggest using a &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchTutorial/Useasubsearch" target="_blank"&gt;subsearch&lt;/A&gt; with &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Append" target="_blank"&gt;append&lt;/A&gt; or &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Appendcols" target="_blank"&gt;appendcols&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259166#M4808</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2020-09-29T09:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for solution of one alert calling script to execute second saved search</title>
      <link>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259167#M4809</link>
      <description>&lt;P&gt;subsearch is the solution for me. I had never really used it before. That is exactly what I wanted. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 05:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259167#M4809</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2016-05-20T05:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for solution of one alert calling script to execute second saved search</title>
      <link>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259168#M4810</link>
      <description>&lt;P&gt;If you answer the question I can then accept the answer...&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 05:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Looking-for-solution-of-one-alert-calling-script-to-execute/m-p/259168#M4810</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2016-05-20T05:21:44Z</dc:date>
    </item>
  </channel>
</rss>

