<?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: Looking to create a chart that displays run time values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186567#M53724</link>
    <description>&lt;P&gt;Finally, since these events are for one batch run, do you have any field which separates different, some kind of Id?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2014 21:04:40 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-03-13T21:04:40Z</dc:date>
    <item>
      <title>Looking to create a chart that displays run time values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186563#M53720</link>
      <description>&lt;P&gt;Hello, looking to create a data table that displays run time values of a batch jobs... Example of this would be defined below.&lt;/P&gt;

&lt;P&gt;The DEPI_H element would be the start of the job, the DEPI_T element would be completion of the job.  I am looking to create a table in Splunk that outputs the total runtime into a data table.  Forgive my ignorance these, new to creating these... &lt;/P&gt;

&lt;P&gt;AA1212|03/13/2014|06:33:06|03/13/2014|06:33:07|1212DEPI|&lt;STRONG&gt;DEPI_T&lt;/STRONG&gt;&lt;BR /&gt;
AA1212|03/13/2014|06:33:03|03/13/2014|06:33:06|1212DEPI|XSFTP_EPI8&lt;BR /&gt;
AA1212|03/13/2014|06:33:00|03/13/2014|06:33:02|1212DEPI|XSFTP_EPI7&lt;BR /&gt;
AA1212|03/13/2014|06:32:57|03/13/2014|06:32:59|1212DEPI|XSFTP_EPI6&lt;BR /&gt;
AA1212|03/13/2014|06:32:53|03/13/2014|06:32:56|1212DEPI|XSFTP_EPI5&lt;BR /&gt;
AA1212|03/13/2014|06:32:50|03/13/2014|06:32:52|1212DEPI|XSFTP_EPI4&lt;BR /&gt;
AA1212|03/13/2014|06:32:47|03/13/2014|06:32:49|1212DEPI|XSFTP_EPI3&lt;BR /&gt;
AA1212|03/13/2014|06:32:44|03/13/2014|06:32:46|1212DEPI|XSFTP_EPI2&lt;BR /&gt;
AA1212|03/13/2014|06:32:39|03/13/2014|06:32:43|1212DEPI|XSFTP_EPI1&lt;BR /&gt;
AA1212|03/13/2014|06:32:37|03/13/2014|06:32:38|1212DEPI|XGETEPITZP&lt;BR /&gt;
AA1212|03/13/2014|06:32:31|03/13/2014|06:32:36|1212DEPI|PZGETEPIT&lt;BR /&gt;
AA1212|03/13/2014|06:31:28|03/13/2014|06:32:30|1212DEPI|XMONEPIT_&lt;BR /&gt;
AA1212|03/13/2014|06:30:02|03/13/2014|06:31:20|1212DEPI|&lt;STRONG&gt;DEPI_H&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:07:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186563#M53720</guid>
      <dc:creator>fisuser1</dc:creator>
      <dc:date>2020-09-28T16:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to create a chart that displays run time values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186564#M53721</link>
      <description>&lt;P&gt;Are the fields extracted already? For duration , you want the sum of duration of each event of total duration from DEPI_H to DEPI_T?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186564#M53721</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T16:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to create a chart that displays run time values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186565#M53722</link>
      <description>&lt;P&gt;Hello, thanks for the response. yes fields are already extracted.  I would want the sum of the event time, correct.  In this case, that being.&lt;/P&gt;

&lt;P&gt;AA1212|03/13/2014|06:30:02|03/13/2014|06:31:20|1212DEPI|DEPI_H&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;AA1212|03/13/2014|06:33:06|03/13/2014|06:33:07|1212DEPI|DEPI_T &lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 19:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186565#M53722</guid>
      <dc:creator>fisuser1</dc:creator>
      <dc:date>2014-03-13T19:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to create a chart that displays run time values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186566#M53723</link>
      <description>&lt;P&gt;Hello, thanks for the response. yes fields are already extracted. I would want the sum of the event time, correct. In this case, that being.&lt;BR /&gt;
AA1212|03/13/2014|06:30:02|03/13/2014|06:31:20|1212DEPI|DEPI_H&lt;BR /&gt;
and&lt;BR /&gt;
AA1212|03/13/2014|06:33:06|03/13/2014|06:33:07|1212DEPI|DEPI_T&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186566#M53723</guid>
      <dc:creator>fisuser1</dc:creator>
      <dc:date>2020-09-28T16:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to create a chart that displays run time values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186567#M53724</link>
      <description>&lt;P&gt;Finally, since these events are for one batch run, do you have any field which separates different, some kind of Id?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 21:04:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186567#M53724</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-13T21:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to create a chart that displays run time values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186568#M53725</link>
      <description>&lt;P&gt;Yes, in this case, AA1212 is the identifier...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 21:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186568#M53725</guid>
      <dc:creator>fisuser1</dc:creator>
      <dc:date>2014-03-13T21:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to create a chart that displays run time values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186569#M53726</link>
      <description>&lt;P&gt;Assuming your have field names like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field1|startDate|startTime|endDate|endTime|field2|field3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you are interested in whole duration between and including event with &lt;CODE&gt;DEPI_H to event with DEPI_T&lt;/CODE&gt;, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval Start=strptime(startDate." ".startTime,"%m/%d/%Y %H:%M:%S") | eval End=strptime(endDate." ".endTime,"%m/%d/%Y %H:%M:%S") | eval DurationSecs=End-Start | stats sum(DurationSecs) as TotalDurationSecs by field1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where field1 is the unique id for different batch run.&lt;/P&gt;

&lt;P&gt;If you just want the duration of event with &lt;CODE&gt;DEPI_H and DEPI_T&lt;/CODE&gt;, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search (field3="DEPI_H" OR field3="DEPI_T")| eval Start=strptime(startDate." ".startTime,"%m/%d/%Y %H:%M:%S") | eval End=strptime(endDate." ".endTime,"%m/%d/%Y %H:%M:%S") | eval DurationSecs=End-Start | stats sum(DurationSecs) as TotalDurationSecs by field1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Mar 2014 21:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186569#M53726</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-13T21:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to create a chart that displays run time values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186570#M53727</link>
      <description>&lt;P&gt;Many thanks, I will give this a try!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 21:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Looking-to-create-a-chart-that-displays-run-time-values/m-p/186570#M53727</guid>
      <dc:creator>fisuser1</dc:creator>
      <dc:date>2014-03-13T21:36:34Z</dc:date>
    </item>
  </channel>
</rss>

