<?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: Adding a Time Range (Extending to the Future) and Use it in a Timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474704#M133493</link>
    <description>&lt;P&gt;Good question, sorry I failed to clarify that, I will use another field called (objTimestamp) or even the _time field, since they are very close to each other. Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 08:09:37 GMT</pubDate>
    <dc:creator>jameldebbiche</dc:creator>
    <dc:date>2020-02-21T08:09:37Z</dc:date>
    <item>
      <title>Adding a Time Range (Extending to the Future) and Use it in a Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474702#M133491</link>
      <description>&lt;P&gt;Hi everyone, &lt;/P&gt;

&lt;P&gt;We have logs that contain field named "var" with num data type, the value of this field changes through time, so we have two more fields in the log, startDate (when the var acquired the value written in that log) and endDate (when the var value will expire). Both dates are written in the %Y%m%d format. And of course, some of the endDate values are in the future. &lt;/P&gt;

&lt;P&gt;I want to create a timechart where the x-axis starts from the first startDate value of the var field and ends at the latest endDate which is in the future. So my question is, after many days of research, is it possible to create a time range that is to be used in the timechart? Something like: &lt;/P&gt;

&lt;P&gt;|eval customTimeRange = [earliest(startDate) .. latest(endDate)]&lt;BR /&gt;
|chart values(var) over customTimeRange by source&lt;/P&gt;

&lt;P&gt;Or something similar? Maybe it is worth mentioning, that I want it as a line chart, where the line is continuous and the last value will extend on the chart till the endDate value.&lt;/P&gt;

&lt;P&gt;Any help would be appreciated! Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 10:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474702#M133491</guid>
      <dc:creator>jameldebbiche</dc:creator>
      <dc:date>2020-02-20T10:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Time Range (Extending to the Future) and Use it in a Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474703#M133492</link>
      <description>&lt;P&gt;So every event has the startDate and EndDate and the var(value)? If that is correct and the x axis is the time line of start to end date, what time would you use in the event to place the var(value) on the timeline?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 05:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474703#M133492</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2020-02-21T05:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Time Range (Extending to the Future) and Use it in a Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474704#M133493</link>
      <description>&lt;P&gt;Good question, sorry I failed to clarify that, I will use another field called (objTimestamp) or even the _time field, since they are very close to each other. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:09:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474704#M133493</guid>
      <dc:creator>jameldebbiche</dc:creator>
      <dc:date>2020-02-21T08:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Time Range (Extending to the Future) and Use it in a Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474705#M133494</link>
      <description>&lt;P&gt;&lt;CODE&gt;Use it in a Timechart&lt;/CODE&gt;&lt;BR /&gt;
what's y-axis?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474705#M133494</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T08:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Time Range (Extending to the Future) and Use it in a Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474706#M133495</link>
      <description>&lt;P&gt;Y axis will be the var value. But timechart will only use _time on the x axis and not the custom range of the earliest startDate and the latest endDate, so that is not I am not using timechart.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474706#M133495</guid>
      <dc:creator>jameldebbiche</dc:creator>
      <dc:date>2020-02-21T08:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Time Range (Extending to the Future) and Use it in a Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474707#M133496</link>
      <description>&lt;P&gt;If &lt;CODE&gt;earliest startDate and the latest endDate&lt;/CODE&gt;is epoch, timechart can be.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474707#M133496</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T08:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Time Range (Extending to the Future) and Use it in a Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474708#M133497</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your search
| eval time=mvappend(startDate,endDate)
| streamstats count as session
| mvexpand time
| eval time=strptime(time, "%Y%m%d")
| table time var
| rename time as _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-Time-Range-Extending-to-the-Future-and-Use-it-in-a/m-p/474708#M133497</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-21T08:36:32Z</dc:date>
    </item>
  </channel>
</rss>

