<?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 Search weekday during time, and include all weekend days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690928#M235304</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;my current search is&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=winsec source=WinEventLog:Security EventCode=6272 
| eval date_hour = strftime(_time, "%H")
| where date_hour &amp;gt;= 19 OR date_hour &amp;lt;=06
| timechart count(src_user)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This provides me with a graph of logins made after hours. I want to expand the acceptable items to include the entire days of saturday/sunday as well. When I attempt to add this, i get "no results" what would be the best way to include that?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 21:27:27 GMT</pubDate>
    <dc:creator>Cmiddleton-oppd</dc:creator>
    <dc:date>2024-06-17T21:27:27Z</dc:date>
    <item>
      <title>Search weekday during time, and include all weekend days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690928#M235304</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;my current search is&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=winsec source=WinEventLog:Security EventCode=6272 
| eval date_hour = strftime(_time, "%H")
| where date_hour &amp;gt;= 19 OR date_hour &amp;lt;=06
| timechart count(src_user)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This provides me with a graph of logins made after hours. I want to expand the acceptable items to include the entire days of saturday/sunday as well. When I attempt to add this, i get "no results" what would be the best way to include that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 21:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690928#M235304</guid>
      <dc:creator>Cmiddleton-oppd</dc:creator>
      <dc:date>2024-06-17T21:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search weekday during time, and include all weekend days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690929#M235305</link>
      <description>&lt;P&gt;Extract and test for the day of the week similar to how date_hour was done.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=winsec source=WinEventLog:Security EventCode=6272 
| eval date_hour = strftime(_time, "%H"), date_wday = strftime(_time, "%A")
| where date_hour &amp;gt;= 19 OR date_hour &amp;lt;=06 OR date_wday = "Saturday" OR date_wday = "Sunday"
| timechart count(src_user)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Jun 2024 21:02:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690929#M235305</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-06-17T21:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search weekday during time, and include all weekend days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690993#M235328</link>
      <description>&lt;P&gt;I think this would work perfectly, but the system does not appear to have date_wday enabled. Using this term always provides me with " no results"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 13:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690993#M235328</guid>
      <dc:creator>Cmiddleton-oppd</dc:creator>
      <dc:date>2024-06-18T13:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search weekday during time, and include all weekend days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690998#M235332</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;date_wday&amp;nbsp;is being created with the eval command on the second line...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll break it down for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval date_hour = strftime(_time, "%H")
| eval date_wday = strftime(_time, "%A")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 14:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/690998#M235332</guid>
      <dc:creator>glc_slash_it</dc:creator>
      <dc:date>2024-06-18T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search weekday during time, and include all weekend days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/691003#M235335</link>
      <description>&lt;P&gt;You're right! my mistake, I didn't read the entire query.&lt;BR /&gt;&lt;BR /&gt;Thanks for pointing out my mistake!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 14:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-weekday-during-time-and-include-all-weekend-days/m-p/691003#M235335</guid>
      <dc:creator>Cmiddleton-oppd</dc:creator>
      <dc:date>2024-06-18T14:17:48Z</dc:date>
    </item>
  </channel>
</rss>

