<?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 to get the job start time, end time and duration for each day for last 7 days? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432571#M7758</link>
    <description>&lt;P&gt;Yes it contains multiple jobs&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 15:07:27 GMT</pubDate>
    <dc:creator>abhi04</dc:creator>
    <dc:date>2018-05-31T15:07:27Z</dc:date>
    <item>
      <title>How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432561#M7748</link>
      <description>&lt;P&gt;How to get the job start time, end time and duration for each day for last 7 days? Below is the sample log:&lt;/P&gt;

&lt;P&gt;/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-20.01.39)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-21.00.01)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-21.01.00)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432561#M7748</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2020-09-29T19:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432562#M7749</link>
      <description>&lt;P&gt;These all say 'started'  so I would assume these are all start times? Are there different logs that are end times? or is the end time something derived from what is here?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 11:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432562#M7749</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-05-31T11:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432563#M7750</link>
      <description>&lt;P&gt;YEs ,&lt;/P&gt;

&lt;P&gt;So for one job say gc01iwcdl we have multiple start time and end time mentioned for date 29 as you can see below. So we want the oldest start time mentioned as start time and latest end time as end time for this job for each day for last 7 days.&lt;/P&gt;

&lt;P&gt;5/29/18 &lt;BR /&gt;
11:36:58.000 PM &lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-29-22.36.59)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-03.05.45)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-20.00.03)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-20.01.40)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-21.00.02)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-21.01.01)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-22.00.03)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-22.01.01)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-23.00.02)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-23.01.00)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-29-22.36.58)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-03.05.43)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-20.00.00)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-20.01.39)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-21.00.01)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-21.01.00)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-22.00.00)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-22.01.00)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-23.00.00)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - started - time=(2018-05-30-23.01.00)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432563#M7750</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2020-09-29T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432564#M7751</link>
      <description>&lt;P&gt;Yes,we have multiple start time and end time for a particular job for same day.we want to take the latest end time as end time and oldest start time as start time for that particular date and job ignoring other time .&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 12:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432564#M7751</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-05-31T12:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432565#M7752</link>
      <description>&lt;P&gt;Then please provide a proper sample that includes all the relevant event types. If you want help to come up with a solution, please don't let us guess what your data looks like.&lt;/P&gt;

&lt;P&gt;Also: getting the oldest start of the day and latest end, means when the job runs multiple times, you just interpret that as one long run? I don't know the context of course, but that doesn't sound very logical to me...&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 12:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432565#M7752</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-31T12:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432566#M7753</link>
      <description>&lt;P&gt;5/29/18 &lt;BR /&gt;
11:36:58.000 PM &lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-29-22.36.59)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-03.05.45)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_afdw.ksh: Job gc01iwcdl_afdw - ENDED - time=(2018-05-30-20.00.03)&lt;/P&gt;

&lt;P&gt;5/29/18 &lt;BR /&gt;
11:36:50.000 PM &lt;BR /&gt;
... 13 lines omitted ...&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_ins.ksh: Job gc01iwcdl_ins - started - time=(2018-05-30-20.01.39)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_ins.ksh: Job gc01iwcdl_ins - started - time=(2018-05-30-21.00.02)&lt;BR /&gt;
/afiw/batch/scripts/gc01iwcdl_ins.ksh: Job gc01iwcdl_ins - started - time=(2018-05-30-21.01.00)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432566#M7753</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2020-09-29T19:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432567#M7754</link>
      <description>&lt;P&gt;provided the same&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 12:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432567#M7754</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-05-31T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432568#M7755</link>
      <description>&lt;P&gt;And is this in splunk as separate events (one event per line, with time=() mapped to _time) or somehow batched together?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 13:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432568#M7755</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-31T13:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432569#M7756</link>
      <description>&lt;P&gt;This is one event and _time not mapped to time (&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 13:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432569#M7756</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-05-31T13:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432570#M7757</link>
      <description>&lt;P&gt;And can such an event contain multiple jobs? Your example only includes 1 job, with multiple start/end times.&lt;/P&gt;

&lt;P&gt;And is it always sorted like this with first all the end times and then all the start times?&lt;/P&gt;

&lt;P&gt;Personally I think I would start by investing a bit of time in ingesting this data properly. Splitting it up in individual events with a proper timestamp. From that it should be fairly straightforward to find earliest start and latest end and do some reporting on that.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 13:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432570#M7757</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-31T13:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the job start time, end time and duration for each day for last 7 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432571#M7758</link>
      <description>&lt;P&gt;Yes it contains multiple jobs&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 15:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-the-job-start-time-end-time-and-duration-for-each-day/m-p/432571#M7758</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2018-05-31T15:07:27Z</dc:date>
    </item>
  </channel>
</rss>

