<?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: [help]Get the time duration within a  specific start and end value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564494#M196647</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/218024"&gt;@cheriemilk&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You need to provide an eval/search expression to the &lt;STRONG&gt;startswith&lt;/STRONG&gt; and &lt;STRONG&gt;endwith&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;arguments&lt;/SPAN&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*bizx_application AND sourcetype=perf_log_bizx AND PID="PM_REVIEW" AND PLV=EVENT AND ACT="AUTOSAVEFORM_*"  AND C_ACTV="*commentEdit*" OR ACT="*SendRequest"
| sort - _time, CMID, SID, UID
| transaction CMID SID UID startswith="ACT=AUTOSAVEFORM_trigReq_AutoSaveForm" endswith="ACT=AUTOSAVEFORM_after_sendRequest"
| table _time duration eventcount&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; More details on here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction#Filter_string_options" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction#Filter_string_options&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, a like would be appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 08:57:48 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-08-24T08:57:48Z</dc:date>
    <item>
      <title>[help]Get the time duration within a  specific start and end value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564489#M196646</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I have below data in splunk.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cheriemilk_2-1629794660001.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15696iB41F22C2DB99951C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cheriemilk_2-1629794660001.png" alt="cheriemilk_2-1629794660001.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to get the time duration when below range.&lt;/P&gt;&lt;P&gt;ACT start with "AUTOSAVEFORM_trigReq_AutoSaveForm", and end with "AUTOSAVEFORM_after_sendReques"&lt;/P&gt;&lt;P&gt;I have tried below queries , but it doesn;t return the correct result.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;index=*bizx_application AND sourcetype=perf_log_bizx AND PID="PM_REVIEW" AND PLV=EVENT AND ACT="AUTOSAVEFORM_*"&amp;nbsp; AND C_ACTV="*commentEdit*" OR ACT="*SendRequest"&lt;BR /&gt;|reverse&lt;BR /&gt;| transaction CMID SID UID startswith="AUTOSAVEFORM_trigReq_AutoSaveForm" endswith="AUTOSAVEFORM_after_sendRequest"&lt;BR /&gt;| table _time duration eventcount&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone pease help provide a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 08:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564489#M196646</guid>
      <dc:creator>cheriemilk</dc:creator>
      <dc:date>2021-08-24T08:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: [help]Get the time duration within a  specific start and end value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564494#M196647</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/218024"&gt;@cheriemilk&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You need to provide an eval/search expression to the &lt;STRONG&gt;startswith&lt;/STRONG&gt; and &lt;STRONG&gt;endwith&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;arguments&lt;/SPAN&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*bizx_application AND sourcetype=perf_log_bizx AND PID="PM_REVIEW" AND PLV=EVENT AND ACT="AUTOSAVEFORM_*"  AND C_ACTV="*commentEdit*" OR ACT="*SendRequest"
| sort - _time, CMID, SID, UID
| transaction CMID SID UID startswith="ACT=AUTOSAVEFORM_trigReq_AutoSaveForm" endswith="ACT=AUTOSAVEFORM_after_sendRequest"
| table _time duration eventcount&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; More details on here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction#Filter_string_options" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction#Filter_string_options&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, a like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 08:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564494#M196647</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-08-24T08:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: [help]Get the time duration within a  specific start and end value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564516#M196653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the solution. But I am wondering if the result based on your suggested query is right or not?&lt;/P&gt;&lt;P&gt;The obvious problematic data is for 'eventcount'. In my screenshot-&amp;gt;the transaction blocked with red, there're 6 events totally, but the query result shows this transaction only has 3 events for eventcount field. Is this correct? Looks like, the transaction doesn't start with the first 'ACT=AUTOSAVEFORM_trigReq_AutoSaveForm'.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cherie&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 12:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564516#M196653</guid>
      <dc:creator>cheriemilk</dc:creator>
      <dc:date>2021-08-24T12:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: [help]Get the time duration within a  specific start and end value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564640#M196685</link>
      <description>&lt;P&gt;i get expected result by below query:&lt;/P&gt;&lt;P&gt;index=*bizx_application AND sourcetype=perf_log_bizx AND PID="PM_REVIEW" AND PLV=EVENT AND ACT="AUTOSAVEFORM_*"&amp;nbsp; AND C_ACTV="*commentEdit*" OR ACT="*SendRequest"&lt;/P&gt;&lt;P&gt;| sort _time CMID SID UID&lt;/P&gt;&lt;P&gt;| streamstats count(eval(ACT=="AUTOSAVEFORM_trigReq_AutoSaveForm")) as eventCounter by CMID SID UID ACT C_ACTV reset_after="ACT=AUTOSAVEFORM_trigReq_AutoSaveForm" reset_on_change=true&lt;/P&gt;&lt;P&gt;| table SN, CMN,CMID, CIP, _time, SID,UID, ACT, C_ACTV,eventCounter&lt;/P&gt;&lt;P&gt;| eval ACT=if(ACT=="AUTOSAVEFORM_trigReq_AutoSaveForm" AND C_ACTV=="{reason:commentEditChanged,immediate:false,timeInterval:5000}", ACT+eventCounter, ACT)&lt;/P&gt;&lt;P&gt;| sort - _time CMID SID UID&lt;/P&gt;&lt;P&gt;| transaction CMID SID UID startswith="ACT=AUTOSAVEFORM_trigReq_AutoSaveForm1" endswith="ACT=AUTOSAVEFORM_after_sendRequest"&lt;/P&gt;&lt;P&gt;| table _time CMN duration&lt;/P&gt;&lt;P&gt;| chart list(duration) as interval by _time, CMN&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 06:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-Get-the-time-duration-within-a-specific-start-and-end-value/m-p/564640#M196685</guid>
      <dc:creator>cheriemilk</dc:creator>
      <dc:date>2021-08-25T06:07:52Z</dc:date>
    </item>
  </channel>
</rss>

