<?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 get duration for the product A (only for start and end status)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-duration-for-the-product-A-only-for-start-and-end/m-p/551188#M156414</link>
    <description>&lt;P&gt;So what I have now from my search so far&lt;/P&gt;&lt;P&gt;Product&amp;nbsp; &amp;nbsp; &amp;nbsp;Status&amp;nbsp; &amp;nbsp; Time&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Start&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.00 AM&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.05 AM&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.15 AM&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.20 AM&lt;/P&gt;&lt;P&gt;Is there anyway I can get the duration (End - Start) = 20 minutes and then display as Duration for Product A as 20 minutes?&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 07:18:16 GMT</pubDate>
    <dc:creator>moinyuso96</dc:creator>
    <dc:date>2021-05-11T07:18:16Z</dc:date>
    <item>
      <title>How to get duration for the product A (only for start and end status)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-duration-for-the-product-A-only-for-start-and-end/m-p/551188#M156414</link>
      <description>&lt;P&gt;So what I have now from my search so far&lt;/P&gt;&lt;P&gt;Product&amp;nbsp; &amp;nbsp; &amp;nbsp;Status&amp;nbsp; &amp;nbsp; Time&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Start&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.00 AM&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.05 AM&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.15 AM&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.20 AM&lt;/P&gt;&lt;P&gt;Is there anyway I can get the duration (End - Start) = 20 minutes and then display as Duration for Product A as 20 minutes?&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 07:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-duration-for-the-product-A-only-for-start-and-end/m-p/551188#M156414</guid>
      <dc:creator>moinyuso96</dc:creator>
      <dc:date>2021-05-11T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get duration for the product A (only for start and end status)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-duration-for-the-product-A-only-for-start-and-end/m-p/551197#M156415</link>
      <description>&lt;P&gt;Try this run anywhere example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults |eval product="A"|eval status="Start A1 A2 End"|makemv status|mvexpand status
|appendcols [|makeresults|eval time="08:00 08:05 08:15 08:20"|makemv time|mvexpand time ]
|rename COMMENT as "Dummy data ends here"
|eval time=strptime(time,"%H:%M")
|stats max(eval(if(status=="Start",time,null()))) as Start_Time,max(eval(if(status=="End",time,null()))) as End_Time by product
|eval duration=round((End_Time-Start_Time)/60)&lt;/LI-CODE&gt;&lt;P&gt;change stats to eventstats if you want to see all records in the result&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 08:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-duration-for-the-product-A-only-for-start-and-end/m-p/551197#M156415</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2021-05-11T08:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get duration for the product A (only for start and end status)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-duration-for-the-product-A-only-for-start-and-end/m-p/551200#M156416</link>
      <description>&lt;P&gt;Thanks, it worked for me&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 08:37:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-duration-for-the-product-A-only-for-start-and-end/m-p/551200#M156416</guid>
      <dc:creator>moinyuso96</dc:creator>
      <dc:date>2021-05-11T08:37:32Z</dc:date>
    </item>
  </channel>
</rss>

