<?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: Show/Exclude results maintenance window in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361393#M65909</link>
    <description>&lt;P&gt;I believe Marco's idea is to grab the maintenance windows from a CSV file. You're just putting all the windows on the &lt;CODE&gt;case&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 18:39:05 GMT</pubDate>
    <dc:creator>ferrosky</dc:creator>
    <dc:date>2018-02-08T18:39:05Z</dc:date>
    <item>
      <title>Show/Exclude results maintenance window</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361391#M65907</link>
      <description>&lt;P&gt;I have a CSV file with some value times that I would like to exclude from my searchs/reports.&lt;/P&gt;

&lt;P&gt;That CSV file contains:&lt;BR /&gt;
Index,StartTime,EndTime,&lt;BR /&gt;
Index01,07/02/2018 17:39,07/02/2018 17:42,&lt;BR /&gt;
Index01,07/02/2018 17:37,07/02/2018 17:38,&lt;/P&gt;

&lt;P&gt;My search:&lt;BR /&gt;
index="index01" ( HTTP_statuscode&amp;gt;=500)| stats count(eval(HTTP_statuscode &amp;gt;= 500)) as errors by index&lt;/P&gt;

&lt;P&gt;When I've search from all the results/issues of that day, I want exclude all the results in that period time.&lt;/P&gt;

&lt;P&gt;What will be the best way to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361391#M65907</guid>
      <dc:creator>marco_filipe63</dc:creator>
      <dc:date>2020-09-29T17:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Exclude results maintenance window</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361392#M65908</link>
      <description>&lt;P&gt;something like this might help, but you might need to change the times in the eval statement, as I used GMT.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="index01" ( HTTP_statuscode&amp;gt;=500)|eval exclude=case(_time&amp;gt;1518025140 AND _time&amp;lt;1518025080,1,_time&amp;gt;1518025140 AND _time&amp;lt;1518025320,1,1=1,0)|search exclude=0| stats count(eval(HTTP_statuscode &amp;gt;= 500)) as errors by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://www.epochconverter.com/"&gt;https://www.epochconverter.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 13:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361392#M65908</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-02-08T13:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Exclude results maintenance window</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361393#M65909</link>
      <description>&lt;P&gt;I believe Marco's idea is to grab the maintenance windows from a CSV file. You're just putting all the windows on the &lt;CODE&gt;case&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361393#M65909</guid>
      <dc:creator>ferrosky</dc:creator>
      <dc:date>2018-02-08T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Exclude results maintenance window</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361394#M65910</link>
      <description>&lt;P&gt;Your search doesn't make much sense but I have a similar problem to calculate availability:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web | stats count(eval(HTTP_statuscode &amp;gt;= 500)) as errors, count as total by index | eval availability=round((1-errors/total)*100,3)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would really like be able to have a list of maintenance windows that would be excluded from the availability report.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Show-Exclude-results-maintenance-window/m-p/361394#M65910</guid>
      <dc:creator>ferrosky</dc:creator>
      <dc:date>2018-02-08T18:45:04Z</dc:date>
    </item>
  </channel>
</rss>

