<?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 do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352011#M104167</link>
    <description>&lt;P&gt;Hey @saifullakhali, I converted @kamlesh_vaghela's answer to an answer (it was a comment). You can accept it and upvote any comments that helped you out to award karma points and to show that there's a working solution for your question. &lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 17:56:55 GMT</pubDate>
    <dc:creator>lfedak_splunk</dc:creator>
    <dc:date>2017-11-07T17:56:55Z</dc:date>
    <item>
      <title>How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352006#M104162</link>
      <description>&lt;P&gt;How to write a query which displays all the requests count for every hour in 24 hours access logs. The log timings are between [04/Nov/2017:00:00:00 -0400] and [04/Nov/2017:23:59:59 -0400]&lt;/P&gt;

&lt;P&gt;sample access logs:&lt;BR /&gt;
10.10.1xx.2xx - - 1000000 [04/Nov/2017:01:14:35 -0400] - /web/Ext HTTP/1.1 server.net TIME:0/909972 "GET /web/Ext HTTP/1.1" 200 1158&lt;/P&gt;

&lt;P&gt;sample output:&lt;/P&gt;

&lt;P&gt;Start Time                                   End Time                           Total # of executions&lt;BR /&gt;
04/Nov/2017:00:00:00                  04/Nov/2017:00:59:59                      150&lt;BR /&gt;
04/Nov/2017:01:00:00                  04/Nov/2017:01:59:59                      120&lt;BR /&gt;
.                                                     .                                                             .&lt;BR /&gt;
.                                                     .                                                             .&lt;BR /&gt;
04/Nov/2017:23:00:00             04/Nov/2017:23:59:59                       110&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2017 01:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352006#M104162</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-05T01:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352007#M104163</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Can you please try below search ??&lt;/P&gt;

&lt;P&gt;index=_internal earliest=11/04/2017:0:0:0 latest=11/04/2017:23:59:59 | stats count as "Total # of executions" min(_time) as start_time max(_time) as end_time by date_hour | sort date_hour | eval "Start Time"=strftime(start_time, "%d/%m/%Y %I:%M:%S %p") | eval "End Time"=strftime(end_time, "%d/%m/%Y %I:%M:%S %p") | table "Start Time" "End Time" "Total # of executions"&lt;/P&gt;

&lt;P&gt;This search will display the count of current hour events. Start Time &amp;amp; End time is considered minimum and maximum time respectively of current hour events.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:35:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352007#M104163</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-09-29T16:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352008#M104164</link>
      <description>&lt;P&gt;Thanks Kamlesh , It worked for me.&lt;/P&gt;

&lt;P&gt;i also need response time and size in additional to above, but i need to split the value to get the response time. &lt;BR /&gt;
From the logs Resp Time can be found from TIME:0/909972.&lt;BR /&gt;
Resp Time= 909972 micro seconds.&lt;/P&gt;

&lt;P&gt;I need Resp time in seconds. &lt;/P&gt;

&lt;H2&gt;Columns required:&lt;/H2&gt;

&lt;P&gt;Min Resp Time   Avg Resp Time   Max Resp Time   Std Dev Of Resp Time    90th percentile Resp Time   Min Size of Response     Avg Size   Max Size    Std Dev     90th percentile &lt;/P&gt;

&lt;HR /&gt;</description>
      <pubDate>Mon, 06 Nov 2017 20:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352008#M104164</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-06T20:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352009#M104165</link>
      <description>&lt;P&gt;I did tried the below query and worked for auv,min,max of size. &lt;/P&gt;

&lt;P&gt;index="nam"earliest=09/05/2017:00:00:00 latest=09/05/2017:23:59:59| stats count AS "Total # of executions" min(_time) AS start_time max(_time) as end_time avg(field14) AS "AVGSIZE" min(field14) AS "MINSIZE" max(field14) AS "MAXSIZE" by date_hour| eval "Start Time"=strftime(start_time,"%d/%m/%Y %I:%M:%S:%p")|eval "End Time"=strftime(end_time,"%d/%m/%Y %I:%M:%S:%p")|table "Start Time" "End Time" "Total # of executions" "AVGSIZE" "MINSIZE" "MAXSIZE"&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;field14= size from the logs&lt;/P&gt;

&lt;P&gt;similarly i need for avg, min,max,90 percentile, stddev for Resp Time. &lt;BR /&gt;
Resp Time in logs are  TIME:0/909972 , I need just the millsec value from it&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:38:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352009#M104165</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2020-09-29T16:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352010#M104166</link>
      <description>&lt;P&gt;HI&lt;BR /&gt;
Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="nam" earliest=09/05/2017:00:00:00 latest=09/05/2017:23:59:59 | rex field="Resp Time" "TIME:0\/(?&amp;lt;RESP_TIME&amp;gt;.*)" | stats count AS "Total # of executions" min(_time) AS start_time max(_time) as end_time min(RESP_TIME) AS "Min Resp Time" avg(RESP_TIME) AS "Avg Resp Time" max(RESP_TIME) AS "Max Resp Time" stdev(RESP_TIME) AS "Std Dev Of Resp Time" perc90(RESP_TIME) AS "90th percentile Resp Time" min(field14) AS "Min Size of Response" avg(field14) AS "Avg Size of Response" max(field14) AS "Max Size of Response" stdev(field14) AS "Std Dev of Response" perc90(field14) AS "90th percentile of Response" by date_hour | eval "Start Time"=strftime(start_time,"%d/%m/%Y %I:%M:%S:%p") | eval "End Time"=strftime(end_time,"%d/%m/%Y %I:%M:%S:%p") | table "Start Time" "End Time" "Total # of executions" "Min Resp Time" "Avg Resp Time" "Max Resp Time" "Std Dev Of Resp Time" "90th percentile Resp Time" "Min Size of Response" "Avg Size of Response" "Max Size of Response" "Std Dev of Response"  "90th percentile of Response" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Happy Splunking&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 06:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352010#M104166</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-07T06:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352011#M104167</link>
      <description>&lt;P&gt;Hey @saifullakhali, I converted @kamlesh_vaghela's answer to an answer (it was a comment). You can accept it and upvote any comments that helped you out to award karma points and to show that there's a working solution for your question. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 17:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352011#M104167</guid>
      <dc:creator>lfedak_splunk</dc:creator>
      <dc:date>2017-11-07T17:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352012#M104168</link>
      <description>&lt;P&gt;rex field="Resp Time" "TIME:0\/(?.*)" &lt;/P&gt;

&lt;P&gt;The above code does not extract anything. It is blank when I run even though the log have entries.&lt;BR /&gt;
TIME:0/140248&lt;/P&gt;

&lt;P&gt;----------------------logs sample-----------&lt;BR /&gt;
1x.xx.xxx.xxx - - xxxxxx [04/Oct/2017:00:00:32 -0400] - /lr/Ext/ HTTP/1.1 oxxxxm.xxx.xxx.net TIME:0/140248 "GET /lr/Ext/? HTTP/1.1" 200 19689&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 18:27:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352012#M104168</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-07T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352013#M104169</link>
      <description>&lt;P&gt;I tried your latest query it worked after few changes in rex.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 23:29:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352013#M104169</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-07T23:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352014#M104170</link>
      <description>&lt;P&gt;Thanks kamlesh for the support.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 23:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352014#M104170</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-07T23:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352015#M104171</link>
      <description>&lt;P&gt;HI  @saifullakhali,&lt;/P&gt;

&lt;P&gt;Can you please accept my answer and close this question and upvote my comments that helped you?&lt;/P&gt;

&lt;P&gt;Happy Splunking&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 05:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352015#M104171</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-08T05:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352016#M104172</link>
      <description>&lt;P&gt;There is one small issue when I give search has &lt;BR /&gt;
index="nam_404" earliest=10/03/2017:00:00:00 latest=10/04/2017:23:59:59 &lt;/P&gt;

&lt;P&gt;The Output is:&lt;/P&gt;

&lt;P&gt;start time                              end time                              .................................&lt;BR /&gt;
3/10/2017 00:00:00          4/10/2017 00:59:59                ..................................&lt;/P&gt;

&lt;P&gt;expected is :&lt;BR /&gt;
start time                              end time                            .....................................&lt;BR /&gt;
3/10/2017 00:00:00          3/10/2017 00:59:59              .....................................&lt;BR /&gt;
3/10/2017 01:00:00          3/10/2017 01:59:59              .....................................&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
3/10/2017 23:00:00          3/10/2017 23:59:59              .....................................&lt;/P&gt;

&lt;P&gt;4/10/2017 00:00:00          4/10/2017 00:59:59              .....................................&lt;BR /&gt;
4/10/2017 00:01:00          4/10/2017 01:59:59              .....................................&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
4/10/2017 23:00:00          4/10/2017 23:59:59              .....................................&lt;/P&gt;

&lt;P&gt;-full search string---------&lt;BR /&gt;
index="nam_404" earliest=10/03/2017:00:00:00 latest=10/04/2017:23:59:59 | rex field="Resp Time" "TIME:(?.&lt;EM&gt;)\/(?.&lt;/EM&gt;)" | stats count AS "Total # of executions" min(_time) AS start_time max(_time) as end_time min(RESP_TIME) AS "Min Resp Time" avg(RESP_TIME) AS "Avg Resp Time" max(RESP_TIME) AS "Max Resp Time" stdev(RESP_TIME) AS "Std Dev Of Resp Time" perc90(RESP_TIME) AS "90th percentile Resp Time" min(field14) AS "Min Size of Response" avg(field14) AS "Avg Size of Response" max(field14) AS "Max Size of Response" stdev(field14) AS "Std Dev of Size" perc90(field14) AS "90th percentile of Size" by date_hour | eval "Start Time"=strftime(start_time,"%d/%m/%Y %I:%M:%S:%p") | eval "End Time"=strftime(end_time,"%d/%m/%Y %I:%M:%S:%p") | table "Start Time" "End Time" "Total # of executions" "Min Resp Time" "Avg Resp Time" "Max Resp Time" "Std Dev Of Resp Time" "90th percentile Resp Time" "Min Size of Response" "Avg Size of Response" "Max Size of Response" "Std Dev of Size"  "90th percentile of Size"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352016#M104172</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2020-09-29T16:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352017#M104173</link>
      <description>&lt;P&gt;Can you please answer my last question as the output I am getting is the not the expected one.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 14:16:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352017#M104173</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-09T14:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352018#M104174</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Sure,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="nam_404" earliest=10/03/2017:00:00:00 latest=10/04/2017:23:59:59 
| rex field="Resp Time" "TIME:(?.)\/(?.)" 
| stats count AS "Total # of executions" min(_time) AS start_time max(_time) as end_time min(RESP_TIME) AS "Min Resp Time" avg(RESP_TIME) AS "Avg Resp Time" max(RESP_TIME) AS "Max Resp Time" stdev(RESP_TIME) AS "Std Dev Of Resp Time" perc90(RESP_TIME) AS "90th percentile Resp Time" min(field14) AS "Min Size of Response" avg(field14) AS "Avg Size of Response" max(field14) AS "Max Size of Response" stdev(field14) AS "Std Dev of Size" perc90(field14) AS "90th percentile of Size" **by date_month,date_mday,date_hour**
| eval "Start Time"=strftime(start_time,"%d/%m/%Y %I:%M:%S:%p") 
| eval "End Time"=strftime(end_time,"%d/%m/%Y %I:%M:%S:%p") 
| table "Start Time" "End Time" "Total # of executions" "Min Resp Time" "Avg Resp Time" "Max Resp Time" "Std Dev Of Resp Time" "90th percentile Resp Time" "Min Size of Response" "Avg Size of Response" "Max Size of Response" "Std Dev of Size" "90th percentile of Size"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just Replace  &lt;STRONG&gt;by date_hour&lt;/STRONG&gt; with   &lt;STRONG&gt;by date_month,date_mday,date_hour&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352018#M104174</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-09-29T16:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352019#M104175</link>
      <description>&lt;P&gt;Thanks it worked&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 14:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352019#M104175</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-09T14:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352020#M104176</link>
      <description>&lt;P&gt;Can you please answer the below question which is the continuation of same question &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/590385/how-do-you-display-the-of-requests-per-24-hours-of-1.html?minQuestionBodyLength=80"&gt;https://answers.splunk.com/answers/590385/how-do-you-display-the-of-requests-per-24-hours-of-1.html?minQuestionBodyLength=80&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 16:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352020#M104176</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-09T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display the # of requests per 24 hours of log access (Between 00:00:00 and 23:59:59)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352021#M104177</link>
      <description>&lt;P&gt;sure @saifullakhalid.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 12:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/352021#M104177</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-10T12:06:20Z</dc:date>
    </item>
  </channel>
</rss>

