<?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 Include present time while adding time to the event in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Include-present-time-while-adding-time-to-the-event/m-p/548375#M37756</link>
    <description>&lt;P&gt;Hello Splunk Community,&lt;/P&gt;&lt;P&gt;I would like to add time to an event, but at the same time keep the present time. So, start with present time and also add one day to the event... Below I have the concept, but I still need some guidance on how to include present time results while also adding one day to the event. Any advise out there?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start_time=relative_time(_time,"-1d@d")
| eval end_time=start_time+3600*24 + 1
| eval the_time=mvrange(start_time, end_time, 3600)
| mvexpand the_time
| rename the_time as _time
| table _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 04:35:29 GMT</pubDate>
    <dc:creator>MeMilo09</dc:creator>
    <dc:date>2021-04-19T04:35:29Z</dc:date>
    <item>
      <title>Include present time while adding time to the event</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Include-present-time-while-adding-time-to-the-event/m-p/548375#M37756</link>
      <description>&lt;P&gt;Hello Splunk Community,&lt;/P&gt;&lt;P&gt;I would like to add time to an event, but at the same time keep the present time. So, start with present time and also add one day to the event... Below I have the concept, but I still need some guidance on how to include present time results while also adding one day to the event. Any advise out there?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start_time=relative_time(_time,"-1d@d")
| eval end_time=start_time+3600*24 + 1
| eval the_time=mvrange(start_time, end_time, 3600)
| mvexpand the_time
| rename the_time as _time
| table _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 04:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Include-present-time-while-adding-time-to-the-event/m-p/548375#M37756</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2021-04-19T04:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Include present time while adding time to the event</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Include-present-time-while-adding-time-to-the-event/m-p/548377#M37757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233122"&gt;@MeMilo09&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I am not sure about your need about the present time, but please try below? It will add current time to the list;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start_time=relative_time(_time,"-1d@d")
| eval end_time=start_time+3600*24 + 1
| eval the_time=mvrange(start_time, end_time, 3600)
| eval present_time=strftime(now(),"%s")
| eval the_time=mvappend(the_time,present_time)
| mvexpand the_time
| rename the_time as _time
| table _time&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Apr 2021 05:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Include-present-time-while-adding-time-to-the-event/m-p/548377#M37757</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-19T05:52:17Z</dc:date>
    </item>
  </channel>
</rss>

