<?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: Search query help to get duration of Job in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620252#M215609</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Do each execution of the job have a unique id?&lt;BR /&gt;&lt;/SPAN&gt;Ans: Unfortunately no, that's the issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do the jobs overlap?&lt;/SPAN&gt;&lt;BR /&gt;Ans: Different jobs can overlap but not the same job.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do the jobs have different names?&lt;/SPAN&gt;&lt;BR /&gt;Ans: Yes, there are jobs with different names.&lt;BR /&gt;&lt;BR /&gt;I have done similar in past. I think I am very close to find the solution. I will update once done.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 11:26:29 GMT</pubDate>
    <dc:creator>AKG11</dc:creator>
    <dc:date>2022-11-09T11:26:29Z</dc:date>
    <item>
      <title>How to search duration of job?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620244#M215604</link>
      <description>&lt;P&gt;Hi, I am trying to build a query where I need Job duration.&amp;nbsp; Each job could run multiple time and its start/end time is recorded in multiple lines.&lt;BR /&gt;I remember using streamstats for this requirement but couldn't figure it out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AKG11_0-1667988218620.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22400iE52FA88B7F3A978D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AKG11_0-1667988218620.png" alt="AKG11_0-1667988218620.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 15:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620244#M215604</guid>
      <dc:creator>AKG11</dc:creator>
      <dc:date>2022-11-09T15:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search query help to get duration of Job</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620249#M215608</link>
      <description>&lt;P&gt;Do each execution of the job have a unique id?&lt;/P&gt;&lt;P&gt;Do the jobs overlap?&lt;/P&gt;&lt;P&gt;Do the jobs have different names?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 11:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620249#M215608</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-09T11:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search query help to get duration of Job</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620252#M215609</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Do each execution of the job have a unique id?&lt;BR /&gt;&lt;/SPAN&gt;Ans: Unfortunately no, that's the issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do the jobs overlap?&lt;/SPAN&gt;&lt;BR /&gt;Ans: Different jobs can overlap but not the same job.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do the jobs have different names?&lt;/SPAN&gt;&lt;BR /&gt;Ans: Yes, there are jobs with different names.&lt;BR /&gt;&lt;BR /&gt;I have done similar in past. I think I am very close to find the solution. I will update once done.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 11:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620252#M215609</guid>
      <dc:creator>AKG11</dc:creator>
      <dc:date>2022-11-09T11:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search query help to get duration of Job</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620278#M215619</link>
      <description>&lt;P&gt;You could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats count(eval(status=="STARTING")) as instance by job
| stats min(_time) as starttime max(_time) as endtime by job instance
| eval duration=endtime-starttime&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:15:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-duration-of-job/m-p/620278#M215619</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-09T13:15:21Z</dc:date>
    </item>
  </channel>
</rss>

