<?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 Timeline App duration problem in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242823#M72251</link>
    <description>&lt;P&gt;Hi everyone!&lt;/P&gt;

&lt;P&gt;I'm trying to use Timeline module but I have some trouble with the duration:&lt;BR /&gt;
Note: I'm working with a lookup file&lt;/P&gt;

&lt;P&gt;So, I have start and end contract date for some object, and obviously, I would like to see on a timeline when a contract start and end.&lt;BR /&gt;
I do the following:&lt;BR /&gt;
&lt;CODE&gt;convert timeformat=%Y-%m-%d mktime(timeDate) mktime(endDate) | eval diff=(endDate-timeDate) |table timeDate, "Contract #", diff&lt;/CODE&gt;&lt;BR /&gt;
I have a timeline but, for example: I have a contract starting at 2009-10-01 and ending at 2014-10-31. The diff value in seconds is correct but, on the timeline it represent only 1day. I don't understand where the problem is. (By the way, every starting date is correctly put on the timeline&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 09:10:58 GMT</pubDate>
    <dc:creator>MaryvonneMB</dc:creator>
    <dc:date>2016-05-11T09:10:58Z</dc:date>
    <item>
      <title>Timeline App duration problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242823#M72251</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;

&lt;P&gt;I'm trying to use Timeline module but I have some trouble with the duration:&lt;BR /&gt;
Note: I'm working with a lookup file&lt;/P&gt;

&lt;P&gt;So, I have start and end contract date for some object, and obviously, I would like to see on a timeline when a contract start and end.&lt;BR /&gt;
I do the following:&lt;BR /&gt;
&lt;CODE&gt;convert timeformat=%Y-%m-%d mktime(timeDate) mktime(endDate) | eval diff=(endDate-timeDate) |table timeDate, "Contract #", diff&lt;/CODE&gt;&lt;BR /&gt;
I have a timeline but, for example: I have a contract starting at 2009-10-01 and ending at 2014-10-31. The diff value in seconds is correct but, on the timeline it represent only 1day. I don't understand where the problem is. (By the way, every starting date is correctly put on the timeline&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 09:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242823#M72251</guid>
      <dc:creator>MaryvonneMB</dc:creator>
      <dc:date>2016-05-11T09:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline App duration problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242824#M72252</link>
      <description>&lt;P&gt;What visualization are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 16:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242824#M72252</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-11T16:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline App duration problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242825#M72253</link>
      <description>&lt;P&gt;I'm using the Timeline - Custom Vizualisation App from Splunk 6.4&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 06:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242825#M72253</guid>
      <dc:creator>MaryvonneMB</dc:creator>
      <dc:date>2016-05-12T06:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline App duration problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242826#M72254</link>
      <description>&lt;P&gt;In fact, a collegue help me and find that we have to do the following: &lt;CODE&gt;eval diff=(endDate-timeDate) * 1000&lt;/CODE&gt;&lt;BR /&gt;
With this multiplication the results are well design. But he doesn't know why we have to do this. If anyone has an idea, the answer will be welcome!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242826#M72254</guid>
      <dc:creator>MaryvonneMB</dc:creator>
      <dc:date>2016-05-12T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline App duration problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242827#M72255</link>
      <description>&lt;P&gt;Late answer to an old post.&lt;/P&gt;

&lt;P&gt;I had the same issue and it appears that the duration requires the resulting field in milliseconds rather than seconds, so multiplying your result by 1000 makes it work.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Timeline/1.3.0/TimelineViz/TimelineSearchDataFormat"&gt;https://docs.splunk.com/Documentation/Timeline/1.3.0/TimelineViz/TimelineSearchDataFormat&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 15:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timeline-App-duration-problem/m-p/242827#M72255</guid>
      <dc:creator>chchu_splunk</dc:creator>
      <dc:date>2019-01-25T15:05:38Z</dc:date>
    </item>
  </channel>
</rss>

