<?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 How to create after hour report? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624869#M107412</link>
    <description>&lt;P&gt;I am trying to create an after hour query with specific time frames 1. Mon 0000-0700 and 1900-2400, 2. Tue&amp;nbsp;0000-0700 and 1900-2400, 3. Wed&amp;nbsp;0000-0700 and 1900-2400, Thur&amp;nbsp;0000-0700 and 1900-2400, Fri&amp;nbsp;0000-0700 and 1900-2400, Sat 0000-2400, and Sun 0000-2400. I have my Cron Express set for 43 10***&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| sort - _time&lt;/P&gt;
&lt;P&gt;| eval user=lower(user)&lt;/P&gt;
&lt;P&gt;|eval Day=strftime(_time,”%A”)&lt;/P&gt;
&lt;P&gt;|eval Hour=strftime(_time,”%H”)&lt;/P&gt;
&lt;P&gt;|eval Date=strftime(_time,”Y-%m-%d”)&lt;/P&gt;
&lt;P&gt;| search Hour IN (19,20,21,22,23,24,0,1,2,3,4,5,6,7)&lt;/P&gt;
&lt;P&gt;| table Date, Day, Hour, “User Account”&lt;/P&gt;
&lt;P&gt;I like the way this is displayed but I cannot figure out how to combine this query with a weekend (FRI 1900-Mon 0700) query. Or will I have to have two different queries? Once completed this will make a good dashboard.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 16:50:28 GMT</pubDate>
    <dc:creator>Johnsonbc</dc:creator>
    <dc:date>2022-12-20T16:50:28Z</dc:date>
    <item>
      <title>How to create after hour report?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624869#M107412</link>
      <description>&lt;P&gt;I am trying to create an after hour query with specific time frames 1. Mon 0000-0700 and 1900-2400, 2. Tue&amp;nbsp;0000-0700 and 1900-2400, 3. Wed&amp;nbsp;0000-0700 and 1900-2400, Thur&amp;nbsp;0000-0700 and 1900-2400, Fri&amp;nbsp;0000-0700 and 1900-2400, Sat 0000-2400, and Sun 0000-2400. I have my Cron Express set for 43 10***&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| sort - _time&lt;/P&gt;
&lt;P&gt;| eval user=lower(user)&lt;/P&gt;
&lt;P&gt;|eval Day=strftime(_time,”%A”)&lt;/P&gt;
&lt;P&gt;|eval Hour=strftime(_time,”%H”)&lt;/P&gt;
&lt;P&gt;|eval Date=strftime(_time,”Y-%m-%d”)&lt;/P&gt;
&lt;P&gt;| search Hour IN (19,20,21,22,23,24,0,1,2,3,4,5,6,7)&lt;/P&gt;
&lt;P&gt;| table Date, Day, Hour, “User Account”&lt;/P&gt;
&lt;P&gt;I like the way this is displayed but I cannot figure out how to combine this query with a weekend (FRI 1900-Mon 0700) query. Or will I have to have two different queries? Once completed this will make a good dashboard.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 16:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624869#M107412</guid>
      <dc:creator>Johnsonbc</dc:creator>
      <dc:date>2022-12-20T16:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create after hour report?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624874#M107414</link>
      <description>&lt;P&gt;Use &lt;FONT face="courier new,courier"&gt;OR&lt;/FONT&gt; to test for weekend days or weekday hours.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort - _time
| eval user=lower(user)
| eval Day=strftime(_time,”%A”)
| eval Hour=strftime(_time,”%H”)
| eval Date=strftime(_time,”Y-%m-%d”)
| search Day IN (Saturday Sunday) OR Hour IN (19,20,21,22,23,24,0,1,2,3,4,5,6,7)
| table Date, Day, Hour, “User Account”&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 16:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624874#M107414</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-20T16:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create after hour report?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624876#M107415</link>
      <description>&lt;P&gt;That work but it is not capturing 24 hours on Sat &amp;amp; Sun (0000-2400). It is only doing my week day Hours IN&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 16:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624876#M107415</guid>
      <dc:creator>Johnsonbc</dc:creator>
      <dc:date>2022-12-20T16:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create after hour report?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624890#M107416</link>
      <description>&lt;P&gt;It appears to capture the right times for me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="richgalloway_0-1671563710116.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23094i0A25DF1A75EAE908/image-size/medium?v=v2&amp;amp;px=400" role="button" title="richgalloway_0-1671563710116.png" alt="richgalloway_0-1671563710116.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 19:15:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624890#M107416</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-20T19:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create after hour report?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624891#M107417</link>
      <description>&lt;P&gt;It was not working for me so, I created a dashboard with (Mon-Fri) so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;| sort - _time&lt;/P&gt;&lt;P&gt;| eval user=lower(user)&lt;/P&gt;&lt;P&gt;|eval Day=strftime(_time,”%A”)&lt;/P&gt;&lt;P&gt;|eval Hour=strftime(_time,”%H”)&lt;/P&gt;&lt;P&gt;|eval Date=strftime(_time,”Y-%m-%d”)&lt;/P&gt;&lt;P&gt;| search Day IN (Monday) Hour IN (0,1,2,3,4,5,6,19,20,21,22,23)&lt;/P&gt;&lt;P&gt;| stats sum(user)&lt;/P&gt;&lt;P&gt;This gives me the number of user that log on after hours Mon-Fri and can drill down if need to. Still working on the weekend hours.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 19:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624891#M107417</guid>
      <dc:creator>Johnsonbc</dc:creator>
      <dc:date>2022-12-20T19:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create after hour report?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624964#M107427</link>
      <description>&lt;P&gt;I think the reason it was not working for me is because I am running a PIVOT. I was having issues running "Earliest &amp;amp; Latest" and other time &amp;amp; date commands.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 11:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-after-hour-report/m-p/624964#M107427</guid>
      <dc:creator>Johnsonbc</dc:creator>
      <dc:date>2022-12-21T11:52:37Z</dc:date>
    </item>
  </channel>
</rss>

