<?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: Exclude Daily Maintenance Time Range from daily alert in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516549#M87430</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129474"&gt;@cbwillh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;add to your main search the condition: NOT (date_hour=2 OR date_hour=3), in this way&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL" NOT (date_hour=2 OR date_hour=3)
| ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 16:16:59 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-08-27T16:16:59Z</dc:date>
    <item>
      <title>Exclude Daily Maintenance Time Range from daily alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516548#M87429</link>
      <description>&lt;P&gt;I have two alerts which send alert emails whenever a server on our loadbalancer changes status from UP to DOWN or vice versa.&lt;/P&gt;&lt;P&gt;its working great but due to a really cheesy program we are forced to use it requires manual reboots every day or it hangs up during work hours preventing employees from working.&lt;/P&gt;&lt;P&gt;we have the servers scheduled to reboot every day between 0200 and 0330 hours&lt;/P&gt;&lt;P&gt;unfortunately this causes a daily spam storm from the alert I have configured which sends alert emails for each instance of the servers that are rebooting changing from up to down and down to up again.&lt;/P&gt;&lt;P&gt;I have found a lot of other posts regarding excluding time ranges but none of them that I tried have worked for me.&lt;/P&gt;&lt;P&gt;is there a way to edit my alert search to EXCLUDE any events with timestamps between 0200 and 0400 hours EVERY DAY?&lt;/P&gt;&lt;P&gt;my search is below&lt;/P&gt;&lt;P&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL"&lt;BR /&gt;| rex "(?&amp;lt;json&amp;gt;{.*})"&lt;BR /&gt;| spath input=json systemEvents{} output=systemEvents&lt;BR /&gt;| stats values(_time) as _time by systemEvents&lt;BR /&gt;| spath input=systemEvents&lt;BR /&gt;| fields - systemEvents&lt;BR /&gt;| eval _time=strptime(timestamp,"%s")&lt;BR /&gt;| search message=*DOWN&lt;BR /&gt;| sort - _time&lt;BR /&gt;| table _time,eventCode,metaData.server,metaData.listener,eventCode,message,moduleName,severity&lt;BR /&gt;| rename metaData.listener TO Site,metaData.server TO Server&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 15:59:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516548#M87429</guid>
      <dc:creator>cbwillh</dc:creator>
      <dc:date>2020-08-27T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Daily Maintenance Time Range from daily alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516549#M87430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129474"&gt;@cbwillh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;add to your main search the condition: NOT (date_hour=2 OR date_hour=3), in this way&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL" NOT (date_hour=2 OR date_hour=3)
| ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 16:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516549#M87430</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-08-27T16:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Daily Maintenance Time Range from daily alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516558#M87433</link>
      <description>&lt;P&gt;Hello Giuseppe&lt;/P&gt;&lt;P&gt;thanks so much for your help. unfortunately I still get events during the ) 0200 - 0400 times&amp;nbsp;&lt;/P&gt;&lt;P&gt;changed my search to below&lt;/P&gt;&lt;P&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL" NOT (time_hour=2 OR time_hour=3)&lt;BR /&gt;| rex "(?&amp;lt;json&amp;gt;{.*})"&lt;BR /&gt;| spath input=json systemEvents{} output=systemEvents&lt;BR /&gt;| stats values(_time) as _time by systemEvents&lt;BR /&gt;| spath input=systemEvents&lt;BR /&gt;| fields - systemEvents&lt;BR /&gt;| eval _time=strptime(timestamp,"%s")&lt;BR /&gt;| search message=*DOWN&lt;BR /&gt;|sort - _time&lt;BR /&gt;| table _time,eventCode,metaData.server,metaData.listener,eventCode,message,moduleName,severity&lt;BR /&gt;| rename metaData.listener TO Site,metaData.server TO Server&lt;/P&gt;&lt;P&gt;results of new search with your suggestion below (note the events at 0210?)&lt;/P&gt;&lt;P&gt;_time eventCode Server Site message moduleName severity&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;2020-08-27 07:13:27&lt;/TD&gt;&lt;TD&gt;30302&lt;/TD&gt;&lt;TD&gt;Server69&lt;/TD&gt;&lt;TD&gt;Carson_MDCM_Servers&lt;/TD&gt;&lt;TD&gt;A Loadbalancer Server Status is changed to DOWN&lt;/TD&gt;&lt;TD&gt;vShield Edge LoadBalancer&lt;/TD&gt;&lt;TD&gt;Informational&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-08-27 02:10:14&lt;/TD&gt;&lt;TD&gt;30302&lt;/TD&gt;&lt;TD&gt;Server81&lt;/TD&gt;&lt;TD&gt;WT_MDCM_Servers&lt;/TD&gt;&lt;TD&gt;A Loadbalancer Server Status is changed to DOWN&lt;/TD&gt;&lt;TD&gt;vShield Edge LoadBalancer&lt;/TD&gt;&lt;TD&gt;Informational&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-08-27 02:10:03&lt;/TD&gt;&lt;TD&gt;30302&lt;/TD&gt;&lt;TD&gt;Server62&lt;/TD&gt;&lt;TD&gt;WT_MDCM_Servers&lt;/TD&gt;&lt;TD&gt;A Loadbalancer Server Status is changed to DOWN&lt;/TD&gt;&lt;TD&gt;vShield Edge LoadBalancer&lt;/TD&gt;&lt;TD&gt;Informational&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-08-27 01:08:59&lt;/TD&gt;&lt;TD&gt;30302&lt;/TD&gt;&lt;TD&gt;Server69&lt;/TD&gt;&lt;TD&gt;Carson_MDCM_Servers&lt;/TD&gt;&lt;TD&gt;A Loadbalancer Server Status is changed to DOWN&lt;/TD&gt;&lt;TD&gt;vShield Edge LoadBalancer&lt;/TD&gt;&lt;TD&gt;Informational&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-08-26 20:41:08&lt;/TD&gt;&lt;TD&gt;30302&lt;/TD&gt;&lt;TD&gt;Server62&lt;/TD&gt;&lt;TD&gt;WT_MDCM_Servers&lt;/TD&gt;&lt;TD&gt;A Loadbalancer Server Status is changed to DOWN&lt;/TD&gt;&lt;TD&gt;vShield Edge LoadBalancer&lt;/TD&gt;&lt;TD&gt;Informational&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-08-26 20:34:53&lt;/TD&gt;&lt;TD&gt;30302&lt;/TD&gt;&lt;TD&gt;Server69&lt;/TD&gt;&lt;TD&gt;Carson_MDCM_Servers&lt;/TD&gt;&lt;TD&gt;A Loadbalancer Server Status is changed to DOWN&lt;/TD&gt;&lt;TD&gt;vShield Edge LoadBalancer&lt;/TD&gt;&lt;TD&gt;Informational&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-08-26 17:12:13&lt;/TD&gt;&lt;TD&gt;30302&lt;/TD&gt;&lt;TD&gt;Server69&lt;/TD&gt;&lt;TD&gt;Carson_MDCM_Servers&lt;/TD&gt;&lt;TD&gt;A Loadbalancer Server Status is changed to DOWN&lt;/TD&gt;&lt;TD&gt;vShield Edge LoadBalancer&lt;/TD&gt;&lt;TD&gt;Informational&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 27 Aug 2020 17:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516558#M87433</guid>
      <dc:creator>cbwillh</dc:creator>
      <dc:date>2020-08-27T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Daily Maintenance Time Range from daily alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516641#M87444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129474"&gt;@cbwillh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry, my little error: the field to use is &lt;STRONG&gt;date_hour&lt;/STRONG&gt;, so try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL" NOT (date_hour=2 OR date_hour=3)
| ...&lt;/LI-CODE&gt;&lt;P&gt;One little hint: use always also the index in the searches, you'll have faster searches.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 06:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516641#M87444</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-08-28T06:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Daily Maintenance Time Range from daily alert</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516738#M87455</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks so much for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I edited my search to add the index and more important to add your suggested command and it works a treat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;really appreciate your taking the time to help me get this sorted. have a great day!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-Daily-Maintenance-Time-Range-from-daily-alert/m-p/516738#M87455</guid>
      <dc:creator>cbwillh</dc:creator>
      <dc:date>2020-08-28T14:58:12Z</dc:date>
    </item>
  </channel>
</rss>

