<?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: How to exclude weekends from last 30 days search ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/590684#M205654</link>
    <description>&lt;P&gt;You would need to create something like a checkbox on your form that says something like "Exclude Weekends" or "Week Days Only"&lt;/P&gt;&lt;P&gt;When that checkbox is selected, have it add the "&lt;SPAN&gt;date_wday!=saturday AND date_wday!=sunday"&amp;nbsp; to your base search.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 13:56:25 GMT</pubDate>
    <dc:creator>solarboyz1</dc:creator>
    <dc:date>2022-03-24T13:56:25Z</dc:date>
    <item>
      <title>How to exclude weekends from last 30 days search ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/412156#M169340</link>
      <description>&lt;P&gt;My query essentially goes thru every event and  picks a field with response_time. And then calculates the average value of it.&lt;BR /&gt;
I need to do this search for last 30 days excluding weekends(saturday,sunday). But in the presets I don't see any option to exclude weekend. Need help for that.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 15:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/412156#M169340</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-05-18T15:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude weekends from last 30 days search ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/412157#M169341</link>
      <description>&lt;P&gt;Something like...&lt;BR /&gt;
index=main date_wday!=saturday AND date_wday!=sunday&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/412157#M169341</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2020-09-29T19:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude weekends from last 30 days search ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/590683#M205653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/84762"&gt;@solarboyz1&lt;/a&gt;&amp;nbsp;, How can I have this as a customized input button ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/590683#M205653</guid>
      <dc:creator>peterfox1992</dc:creator>
      <dc:date>2022-03-24T13:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude weekends from last 30 days search ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/590684#M205654</link>
      <description>&lt;P&gt;You would need to create something like a checkbox on your form that says something like "Exclude Weekends" or "Week Days Only"&lt;/P&gt;&lt;P&gt;When that checkbox is selected, have it add the "&lt;SPAN&gt;date_wday!=saturday AND date_wday!=sunday"&amp;nbsp; to your base search.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/590684#M205654</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2022-03-24T13:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude weekends from last 30 days search ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/590706#M205658</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/84762"&gt;@solarboyz1&lt;/a&gt;, Thanks for the reply.&lt;/P&gt;&lt;P&gt;Created input option like this. Working as expected but what I noticed is Tick mark is not changing when I select the other option; showing both buttons as Checked.&amp;nbsp; Any suggestions ?&lt;/P&gt;&lt;PRE&gt;&amp;lt;input type="checkbox" token="weekends" id="weekends"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Weekend Option&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;choice value="| where NOT (date_wday=&amp;amp;quot;saturday&amp;amp;quot; OR date_wday=&amp;amp;quot;sunday&amp;amp;quot;)"&amp;gt;Exclude Weekend&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;choice value=""&amp;gt;Include Weekend&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 15:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/590706#M205658</guid>
      <dc:creator>peterfox1992</dc:creator>
      <dc:date>2022-03-24T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude weekends from last 30 days search ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/591087#M205785</link>
      <description>&lt;P&gt;&lt;EM&gt;Tick mark is not changing when I select the other option&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to infer that you are using the timechart to visualize the data, and the timechart still has weekends on the x axis.&lt;/P&gt;&lt;P&gt;I believe You will need to switch from &lt;EM&gt;timechart&lt;/EM&gt;&amp;nbsp; to&amp;nbsp; using &lt;EM&gt;chart over _time&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Which should give you a chart without any weekends.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-weekends-from-last-30-days-search/m-p/591087#M205785</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2022-03-28T12:49:08Z</dc:date>
    </item>
  </channel>
</rss>

