<?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 Advanced triggered alert search in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507007#M9231</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on a project where we will be monitoring the windows backup logs from all our servers. The idea is to create a splunk alert whenever there are backup process that &lt;U&gt;did not start&lt;/U&gt;, or have &lt;U&gt;started but not finished&lt;/U&gt;, or have &lt;U&gt;started but failed&lt;/U&gt;. If this alert is triggered, an email will be sent to admin with the list of servers that met the condition.&lt;/P&gt;&lt;P&gt;So far, I have sourced out the event ID's from the windows backup logs that I needed for the search;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;EventCode=1 - Windows backup started&lt;/LI&gt;&lt;LI&gt;EventCode=4 - Backup Successful&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This can be easily done by creating an alert that searches the eventcodes from a single server and triggers if there are no result. Now my problem is that we have at least 12 servers. Does this mean that i have to create an alert item for each server? - or is there any easier way to do this with just one alert item? or is there an app/addon that easily does this?&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2020 09:12:26 GMT</pubDate>
    <dc:creator>africates</dc:creator>
    <dc:date>2020-07-02T09:12:26Z</dc:date>
    <item>
      <title>Advanced triggered alert search</title>
      <link>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507007#M9231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on a project where we will be monitoring the windows backup logs from all our servers. The idea is to create a splunk alert whenever there are backup process that &lt;U&gt;did not start&lt;/U&gt;, or have &lt;U&gt;started but not finished&lt;/U&gt;, or have &lt;U&gt;started but failed&lt;/U&gt;. If this alert is triggered, an email will be sent to admin with the list of servers that met the condition.&lt;/P&gt;&lt;P&gt;So far, I have sourced out the event ID's from the windows backup logs that I needed for the search;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;EventCode=1 - Windows backup started&lt;/LI&gt;&lt;LI&gt;EventCode=4 - Backup Successful&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This can be easily done by creating an alert that searches the eventcodes from a single server and triggers if there are no result. Now my problem is that we have at least 12 servers. Does this mean that i have to create an alert item for each server? - or is there any easier way to do this with just one alert item? or is there an app/addon that easily does this?&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 09:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507007#M9231</guid>
      <dc:creator>africates</dc:creator>
      <dc:date>2020-07-02T09:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced triggered alert search</title>
      <link>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507026#M9239</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/3808"&gt;@africates&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You should be able to do that in one search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"your search" AND (EventCode=1 OR EventCode=4)|stats count by host
|append [|metadata type=hosts index="your index for backup"|fields host,count]
|fillnull count
|stats sum(count) as events by server | where count &amp;lt;2&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;Find all events which have both eventCodes and count by server&lt;/LI&gt;&lt;LI&gt;Compare it against all servers and find those servers which has event count &amp;lt; 2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Alternatively you could replace the metadata section with a lookup file with all hostnames as well&lt;/P&gt;&lt;P&gt;Test and let's know if it works for your requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 10:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507026#M9239</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-07-02T10:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced triggered alert search</title>
      <link>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507041#M9246</link>
      <description>&lt;P&gt;Hi Renjith,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. It may be working as required but I will need to test it fully by pausing some of the server backup.&lt;/P&gt;&lt;P&gt;Can you briefly explain how this search works? So, it's basically getting the list of all server from the index accumulated over time - is this right? or is this just within the period specified in the search (in my case in the Last 24HRS) ?&lt;/P&gt;&lt;P&gt;What would the result look like if the condition is met? - is it just the name of the host/server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again..&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 10:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507041#M9246</guid>
      <dc:creator>africates</dc:creator>
      <dc:date>2020-07-02T10:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced triggered alert search</title>
      <link>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507086#M9253</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/3808"&gt;@africates&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The search is&amp;nbsp; based on the time range you select.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works this way,&lt;/P&gt;&lt;P&gt;Assume you have 3 servers server1,server2,server3&amp;nbsp;&lt;/P&gt;&lt;P&gt;Server1 has both events = successful backup&lt;/P&gt;&lt;P&gt;Server 2 has only 1 event = Failed back up&lt;/P&gt;&lt;P&gt;Server3 has no events = Back up didn't run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"your search" AND (EventCode=1 OR EventCode=4)|stats count by host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;will result&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;host&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;server1&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;server2&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;No entry for server3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|metadata type=hosts index="your index for backup"|fields host,count]|fillnull count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="99.79338370730238%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;host&lt;/TD&gt;&lt;TD width="49.87080103359173%" height="24px"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;server1&lt;/TD&gt;&lt;TD width="49.87080103359173%" height="24px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;server2&lt;/TD&gt;&lt;TD width="49.87080103359173%" height="24px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;server3&lt;/TD&gt;&lt;TD width="49.87080103359173%" height="24px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;|stats sum(count) as events by server&lt;/PRE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;host&lt;/TD&gt;&lt;TD width="50%"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;server1&lt;/TD&gt;&lt;TD width="50%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;server2&lt;/TD&gt;&lt;TD width="50%"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;server3&lt;/TD&gt;&lt;TD width="50%"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that clarifies&lt;/P&gt;&lt;P&gt;Please upvote if its helpful&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 13:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/507086#M9253</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-07-02T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced triggered alert search</title>
      <link>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/514068#M9461</link>
      <description>&lt;P&gt;Thanks renjith, the solution worked.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 10:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Advanced-triggered-alert-search/m-p/514068#M9461</guid>
      <dc:creator>africates</dc:creator>
      <dc:date>2020-08-14T10:52:16Z</dc:date>
    </item>
  </channel>
</rss>

