<?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)  for set of keywords? 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/364634#M165332</link>
    <description>&lt;P&gt;?pyActivity=...............................................PreActivity=DCBClaimSearch&amp;amp;HeaderButtonSectionName.................HTTP/1.1" 200 4502&lt;BR /&gt;
?pyActivity=...........................LanguageCode=&amp;amp;CountryCode=&amp;amp;PRODUCT_LINE_CD=&amp;amp;REGION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count=..........HTTP/1.1" 200 3402&lt;/P&gt;

&lt;P&gt;Every keyword has different pattern and it lies in middle of requests  but all will start with ?pyActivity=&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
?pyActivity=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx%20&amp;amp;Request_Type=&amp;amp;xxxxxxxxxxxxxx_xxxxxxxxxxxxxxx&amp;amp;ELEMENT_CD=&amp;amp;LanguageCode=&amp;amp;CountryCode=&amp;amp;PRODUCT_LINE_CD=&amp;amp;REGION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count= HTTP/1.1" 200 5092&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:45:39 GMT</pubDate>
    <dc:creator>saifullakhalid</dc:creator>
    <dc:date>2020-09-29T16:45:39Z</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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364630#M165328</link>
      <description>&lt;P&gt;I have a set of keywords which I need to search and generate the output similar to &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/588828/how-do-you-display-the-of-requests-per-24-hours-of.html#comment-589033" target="_blank"&gt;https://answers.splunk.com/answers/588828/how-do-you-display-the-of-requests-per-24-hours-of.html#comment-589033&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;keywords:&lt;/P&gt;

&lt;P&gt;DCBClaimSearch&lt;BR /&gt;
CountryCode=&amp;amp;PRODUCT_LINE_CD=&amp;amp;REGION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count=&lt;BR /&gt;
etc&lt;/P&gt;

&lt;P&gt;log format:&lt;/P&gt;

&lt;P&gt;1x.xx.xxx.xxx - - 1xxxx4 [04/Oct/2017:00:03:44 -0400] - /xxx/Gxxxt/ibxx_xxxxxxxxxxxxxxxxxxxxxxx[[&lt;EM&gt;/!TABTHREAD1 HTTP/1.1 xxxxxxxxxxx.net TIME:0/49626 "POST /pxxxb/Gxxxxt/ixxxU_xxxxxxxxxxxxxxxxxxxxxxxxx&lt;/EM&gt;/!TABTHREAD1?pyActivity=xxxxxxxxxxxxxxxxxxxxxxxx%20&amp;amp;Request_Type=&amp;amp;xxxxxxxxxxxx_CD=Nxxx_xxxxEL&amp;amp;Exxxxxxxxx_CD=&amp;amp;Lxxxxxxxxxe=&amp;amp;CountryCode=&amp;amp;PRODUCT_LINE_CD=&amp;amp;REGION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count= HTTP/1.1" 200 737&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:45:06 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/364630#M165328</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2020-09-29T16:45:06Z</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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364631#M165329</link>
      <description>&lt;P&gt;Hi @saifullakhalid,&lt;/P&gt;

&lt;P&gt;Can you please try this search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH
| rex field=_raw Count=(.*)\s.*\s(?&amp;lt;COUNT&amp;gt;.*) 
| stats count AS "Count" sum(COUNT) as "Sum of COUNT" min(_time) AS start_time max(_time) as end_time 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" "Count" "Sum of COUNT"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 12:21: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/364631#M165329</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-10T12:21: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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364632#M165330</link>
      <description>&lt;P&gt;This is displaying me start time , end time Count and total count, How should I display the keys words below along with these.  I tried adding COUNT, but it was empty. I tried adding like below but it is displaying the full request, I just wanted keywords to display.&lt;/P&gt;

&lt;P&gt;index="prod_4oct_508" pyActivity="&lt;EM&gt;" | rex field=_raw Count=(.&lt;/EM&gt;)\s.&lt;EM&gt;\s(?.&lt;/EM&gt;) &lt;BR /&gt;
 | stats count AS "Count" sum(COUNT) as "Sum of COUNT" min(_time) AS start_time max(_time) as end_time by date_month,date_mday,date_hour,pyActivity&lt;BR /&gt;
 | eval "Start Time"=strftime(start_time,"%d/%m/%Y %I:%M:%S:%p") &lt;BR /&gt;
 | eval "End Time"=strftime(end_time,"%d/%m/%Y %I:%M:%S:%p")  | dedup pyActivity | sort –count&lt;BR /&gt;
 | table "Start Time" "End Time" "pyActivity" "Count" "Sum of COUNT"&lt;/P&gt;

&lt;P&gt;keywords:&lt;/P&gt;

&lt;P&gt;DCBClaimSearch&lt;BR /&gt;
CountryCode=&amp;amp;PRODUCT_LINE_CD=®ION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count=&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:45:31 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/364632#M165330</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2020-09-29T16:45:31Z</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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364633#M165331</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80966"&gt;@saifullakhalid&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;Do you want to extract these keywords?&lt;/P&gt;

&lt;P&gt;DCBClaimSearch&lt;BR /&gt;
CountryCode=&amp;amp;PRODUCT_LINE_CD=®ION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count=&lt;/P&gt;

&lt;P&gt;Below search will extract "&lt;CODE&gt;CountryCode=&amp;amp;PRODUCT_LINE_CD=®ION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count=&lt;/CODE&gt;"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="prod_4oct_508" pyActivity="" 
| rex field=_raw "&amp;amp;CountryCode=(?&amp;lt;FIELD1&amp;gt;.*)\s(.*)\s(.*)\s(?&amp;lt;COUNT&amp;gt;.*)"
| table _time FIELD1 COUNT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you please let me know the pattern of keyword "&lt;CODE&gt;DCBClaimSearch&lt;/CODE&gt;" ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:45:37 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/364633#M165331</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-09-29T16:45:37Z</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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364634#M165332</link>
      <description>&lt;P&gt;?pyActivity=...............................................PreActivity=DCBClaimSearch&amp;amp;HeaderButtonSectionName.................HTTP/1.1" 200 4502&lt;BR /&gt;
?pyActivity=...........................LanguageCode=&amp;amp;CountryCode=&amp;amp;PRODUCT_LINE_CD=&amp;amp;REGION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count=..........HTTP/1.1" 200 3402&lt;/P&gt;

&lt;P&gt;Every keyword has different pattern and it lies in middle of requests  but all will start with ?pyActivity=&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
?pyActivity=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx%20&amp;amp;Request_Type=&amp;amp;xxxxxxxxxxxxxx_xxxxxxxxxxxxxxx&amp;amp;ELEMENT_CD=&amp;amp;LanguageCode=&amp;amp;CountryCode=&amp;amp;PRODUCT_LINE_CD=&amp;amp;REGION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count= HTTP/1.1" 200 5092&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:45:39 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/364634#M165332</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2020-09-29T16:45:39Z</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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364635#M165333</link>
      <description>&lt;P&gt;Hi @saifullakhalid,&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="prod_4oct_508" pyActivity="*" 
| rex field=_raw "&amp;amp;CountryCode=(?&amp;lt;FIELD1&amp;gt;.*)\s(.*)\s(.*)\s(?&amp;lt;COUNT&amp;gt;.*)"
| rex field=_raw "pyActivity=(.*)PreActivity=(?&amp;lt;PreActivity&amp;gt;.*)&amp;amp;" 
| table _time PreActivity _time FIELD1 COUNT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:32:30 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/364635#M165333</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-10T16:32:30Z</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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364636#M165334</link>
      <description>&lt;P&gt;I have written a java program which reads the list of keywords (61 keywords )from csv and parse the logs  and generate 24 hours reports like below  for each keyword. Can we do this in splunk if so then please suggest.&lt;/P&gt;

&lt;P&gt;First report format:&lt;/P&gt;

&lt;P&gt;User          Time                     Protocol Url Elapsed Time (Seconds)  call    Status  Size     logname&lt;BR /&gt;
1432029 17/Oct/04 05:19:05  HTTP/1.1    xxxxxxxxxxx.net 0.150266    POST /xxxx/xxxxt/xxxxxxxxxxxxxx*/!TABTHREAD4?pyActivity=Reloadxxxx&amp;amp;pzxxxxxxxx=xxxxxxxxx&amp;amp;pzFromFrame=xxxxxxxxx&amp;amp;pzxxxxe=pyxxxe&amp;amp;pzxxxxx=false&amp;amp;StxxxxName=xxxxxe&amp;amp;xxxx&amp;amp;inStandardsMode=false&amp;amp;AJAXTrackID=3&amp;amp;pzHarnessID=xxx36749 HTTP/1.1   200   2207    \507\access_log_10_04_2017&lt;/P&gt;

&lt;P&gt;second report format:&lt;/P&gt;

&lt;P&gt;Transaction keyword Start Time  End Time     Total # of executions  Avg # of Executions per Hour    Min Resp Time   Max Resp Time   Avg Resp Time   90th percentile Resp Time   Std Dev Of Resp Time      Min Size of Response  Max Size of Response    Avg Size of Response    90th percentile  Size of Response   Std Dev Of Size of Response&lt;/P&gt;

&lt;P&gt;TC01    DCBClaimSearch  17/Oct/04 00:11:46  17/Oct/04 23:24:05  2398    104 0.029761     27.35804      0.108725955  0.1099671   0.594170951 82  10342   4302.940784 4543    424.216474&lt;/P&gt;

&lt;P&gt;3rd report:&lt;BR /&gt;
Transaction keyword Start Time  End Time    Total # of executions   Avg # of Executions per Hour    Min Resp Time   Max Resp Time   Avg Resp Time   90th percentile Resp Time   Std Dev Of Resp Time    Min Size of Response    Max Size of Response    Avg Size of Response    90th percentile Size of Response    Std Dev Of Size of Response&lt;/P&gt;

&lt;P&gt;TC01    DCBClaimSearch  17/Oct/04 00:00:00  17/Oct/04 00:59:59  4   4   0.056125    0.070999    0.0613225   0.070999    0.00671778  3617    4533    3886.75 4533    437.5083809&lt;BR /&gt;
TC01    DCBClaimSearch  17/Oct/04 01:00:00  17/Oct/04 01:59:59  3   3   0.058215    0.080105    0.066264    0.080105    0.012039662 3780    4548    4036    4548    443.4050067&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:45:44 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/364636#M165334</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2020-09-29T16:45:44Z</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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364637#M165335</link>
      <description>&lt;P&gt;looks like it is extracting values which has the pattern "&amp;amp;CountryCode" and c&lt;BR /&gt;
But is it possible to read these keywords values which needs to be extracted using csv. because as I said the pattern is every line in the code starts with ?pyActivity= , but the keywords falls in middle of this request. like in above comment "&lt;CODE&gt;CountryCode=&amp;amp;PRODUCT_LINE_CD=®ION_CD=&amp;amp;LOB=&amp;amp;LOB_SUB_CD=&amp;amp;Count=&lt;/CODE&gt;" is part of the line  ?pyActivity=&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:47: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/364637#M165335</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-10T16:47: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)  for set of keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-the-of-requests-per-24-hours-of-log-access/m-p/364638#M165336</link>
      <description>&lt;P&gt;I have created a different question for reports mentioned below &lt;A href="https://answers.splunk.com/answers/590577/how-do-you-create-the-report-for-the-log-access-be.html?minQuestionBodyLength=80"&gt;https://answers.splunk.com/answers/590577/how-do-you-create-the-report-for-the-log-access-be.html?minQuestionBodyLength=80&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 17:25: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/364638#M165336</guid>
      <dc:creator>saifullakhalid</dc:creator>
      <dc:date>2017-11-10T17:25:03Z</dc:date>
    </item>
  </channel>
</rss>

