<?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: Charting completion time on daily basis in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/630858#M219146</link>
    <description>&lt;P&gt;Hi, I am trying to adapt this solution to a query that I have that returns job ending times.&lt;/P&gt;&lt;P&gt;If I am starting with this query:&lt;/P&gt;&lt;P&gt;index=anIndex sourcetype=aSourcetype ( aJobName AND "COMPLETED OK" )&lt;/P&gt;&lt;P&gt;From this query I get a list of events.&lt;/P&gt;&lt;P&gt;How can this solution be used to graph my events ?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 20:08:31 GMT</pubDate>
    <dc:creator>sjringo</dc:creator>
    <dc:date>2023-02-14T20:08:31Z</dc:date>
    <item>
      <title>Charting completion time on daily basis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/523084#M147542</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build a line graph that would show me the completion time of an event on a daily basis. The completion time is in the timestamp field. The y axis should display the time of completion and the x axis the date&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Example:

timestamp="2020-10-03 00:48:48.0" statusText="SUCCESS" "JOB1"

timestamp="2020-10-01 21:45:22.0" statusText="SUCCESS" "JOB1"

timestamp="2020-09-31 21:44:22.0" statusText="SUCCESS" "JOB1"

timestamp="2020-09-30 22:48:48.0" statusText="SUCCESS" "JOB1"

timestamp="2020-09-29 00:48:48.0" statusText="SUCCESS" "JOB1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Can anyone please advise what is the best way to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 23:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/523084#M147542</guid>
      <dc:creator>nomad1981</dc:creator>
      <dc:date>2020-10-05T23:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Charting completion time on daily basis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/523097#M147544</link>
      <description>&lt;P&gt;You cannot display time as such on the Y axis, but you can do this, where you are creating a decimal value of time&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="timestamp=\"2020-10-03 00:48:48.0\" statusText=\"SUCCESS\" job=\"JOB1\";
timestamp=\"2020-10-01 21:45:22.0\" statusText=\"SUCCESS\" job=\"JOB1\";
timestamp=\"2020-09-30 21:44:22.0\" statusText=\"SUCCESS\" job=\"JOB1\";
timestamp=\"2020-09-29 22:48:48.0\" statusText=\"SUCCESS\" job=\"JOB1\";
timestamp=\"2020-09-28 00:48:48.0\" statusText=\"SUCCESS\" job=\"JOB1\""
| eval x=split(_raw,";")
| mvexpand x
| rename x as _raw
| extract
| fields - _raw
| eval _time=strptime(timestamp,"%F %T.%Q")
| eval t=split(substr(timestamp, 12, 8),":")
| eval h=mvindex(t,0), m=mvindex(t,1), s=mvindex(t,2)
| eval v=(h)+(m/100)
| bin _time span=1d
| chart max(v) over _time by job&lt;/LI-CODE&gt;&lt;P&gt;What you want is from after the fields - _raw line&lt;/P&gt;&lt;P&gt;It creates the Y axis as hours + minutes / 100, so 10:48 will look like 10.48&lt;/P&gt;&lt;P&gt;Hope this is useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 02:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/523097#M147544</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-10-06T02:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Charting completion time on daily basis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/630858#M219146</link>
      <description>&lt;P&gt;Hi, I am trying to adapt this solution to a query that I have that returns job ending times.&lt;/P&gt;&lt;P&gt;If I am starting with this query:&lt;/P&gt;&lt;P&gt;index=anIndex sourcetype=aSourcetype ( aJobName AND "COMPLETED OK" )&lt;/P&gt;&lt;P&gt;From this query I get a list of events.&lt;/P&gt;&lt;P&gt;How can this solution be used to graph my events ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 20:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/630858#M219146</guid>
      <dc:creator>sjringo</dc:creator>
      <dc:date>2023-02-14T20:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Charting completion time on daily basis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/630865#M219150</link>
      <description>&lt;P&gt;It's best to open a new question rather than take a different tack to an old one, it makes it easier for others to see the new one, so you'll get the best help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 20:52:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-completion-time-on-daily-basis/m-p/630865#M219150</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-02-14T20:52:24Z</dc:date>
    </item>
  </channel>
</rss>

