<?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 Splunk Concurrency Calculation with Drilldown in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Concurrency-Calculation-with-Drilldown/m-p/569638#M198540</link>
    <description>&lt;P&gt;I have some data from logs in Splunk where I need to determine what other requests were running concurrently at the time of any single event.&lt;/P&gt;&lt;P&gt;Using the following query, I was able to have it return a column for the number of requests that ran at the same time within my start time and duration.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;index="sfdc" source="sfdc_event_log://EventLog_SFDC_Production_eventlog_hourly" EVENT_TYPE IN (API, RestAPI) RUN_TIME&amp;gt;20000 
| eval endTime=_time 
| eval permitTimeInSecs=(RUN_TIME-20000)/1000 
| eval permitAcquiredTime=endTime-permitTimeInSecs
| eval dbTotalTime=DB_TOTAL_TIME/1000000
| concurrency start=permitAcquiredTime duration=permitTimeInSecs 
| table _time API_TYPE EVENT_TYPE ENTITY_NAME apimethod concurrency permitAcquiredTime permitTimeInSecs RUN_TIME CPU_TIME dbtotalTime REQUEST_ID USER_ID
| fieldformat dbTotalTime=round(dbTotalTime,0)
| rename permitAcquiredTime as "Start Time", permitTimeInSecs as "Concurrency Duration", concurrency as "Concurrent Running Events", API_TYPE as "API Type", EVENT_TYPE as "Event Type", ENTITY_NAME as "Entity Name", apimethod as "API Method", RUN_TIME as "Run Time", CPU_TIME as "CPU Time", dbtotalTime as "DB Total Time", REQUEST_ID as "Request ID", USER_ID as "User ID"
| sort "Concurrent Running Events" desc&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6JZwR.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16273i3E5E986D464D50BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="6JZwR.png" alt="6JZwR.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;6JZwR.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to investigate a single event in these results. For example, the top event says that at the time it ran, there were 108 concurrent requests running in the 20 second window of time.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I identify those 108 events using this data?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I imagine it would be querying the events that had a specific time frame range, but I am not sure if I need to check something like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;_time + - 10 seconds&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to see what was running within the 20 second window?&lt;/P&gt;&lt;P&gt;I just need to understand the data behind this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;108 events&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a little more for this top example. My end goal here is to be able to add a drill-down to the dashboard so that when I click on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;108, I can see those events that were running concurrently.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 04:38:35 GMT</pubDate>
    <dc:creator>SBB</dc:creator>
    <dc:date>2021-10-05T04:38:35Z</dc:date>
    <item>
      <title>Splunk Concurrency Calculation with Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Concurrency-Calculation-with-Drilldown/m-p/569638#M198540</link>
      <description>&lt;P&gt;I have some data from logs in Splunk where I need to determine what other requests were running concurrently at the time of any single event.&lt;/P&gt;&lt;P&gt;Using the following query, I was able to have it return a column for the number of requests that ran at the same time within my start time and duration.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;index="sfdc" source="sfdc_event_log://EventLog_SFDC_Production_eventlog_hourly" EVENT_TYPE IN (API, RestAPI) RUN_TIME&amp;gt;20000 
| eval endTime=_time 
| eval permitTimeInSecs=(RUN_TIME-20000)/1000 
| eval permitAcquiredTime=endTime-permitTimeInSecs
| eval dbTotalTime=DB_TOTAL_TIME/1000000
| concurrency start=permitAcquiredTime duration=permitTimeInSecs 
| table _time API_TYPE EVENT_TYPE ENTITY_NAME apimethod concurrency permitAcquiredTime permitTimeInSecs RUN_TIME CPU_TIME dbtotalTime REQUEST_ID USER_ID
| fieldformat dbTotalTime=round(dbTotalTime,0)
| rename permitAcquiredTime as "Start Time", permitTimeInSecs as "Concurrency Duration", concurrency as "Concurrent Running Events", API_TYPE as "API Type", EVENT_TYPE as "Event Type", ENTITY_NAME as "Entity Name", apimethod as "API Method", RUN_TIME as "Run Time", CPU_TIME as "CPU Time", dbtotalTime as "DB Total Time", REQUEST_ID as "Request ID", USER_ID as "User ID"
| sort "Concurrent Running Events" desc&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6JZwR.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16273i3E5E986D464D50BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="6JZwR.png" alt="6JZwR.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;6JZwR.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to investigate a single event in these results. For example, the top event says that at the time it ran, there were 108 concurrent requests running in the 20 second window of time.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I identify those 108 events using this data?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I imagine it would be querying the events that had a specific time frame range, but I am not sure if I need to check something like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;_time + - 10 seconds&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to see what was running within the 20 second window?&lt;/P&gt;&lt;P&gt;I just need to understand the data behind this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;108 events&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a little more for this top example. My end goal here is to be able to add a drill-down to the dashboard so that when I click on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;108, I can see those events that were running concurrently.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 04:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Concurrency-Calculation-with-Drilldown/m-p/569638#M198540</guid>
      <dc:creator>SBB</dc:creator>
      <dc:date>2021-10-05T04:38:35Z</dc:date>
    </item>
  </channel>
</rss>

