<?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: Timechart future dates in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/560192#M38953</link>
    <description>&lt;P&gt;if i use &lt;SPAN&gt;earliest and latest&lt;/SPAN&gt; in the search, no results are shown, image attached.&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;&amp;nbsp;you're right, the logic of &lt;SPAN&gt;latest&lt;/SPAN&gt; doesn't make sense&amp;nbsp;but it doesn't influence the results.&lt;BR /&gt;how search for earliest and latest using an&amp;nbsp;&lt;SPAN&gt;inputlookup?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 10:57:30 GMT</pubDate>
    <dc:creator>_Mauro_Costa_</dc:creator>
    <dc:date>2021-07-20T10:57:30Z</dc:date>
    <item>
      <title>Timechart future dates</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/559615#M38902</link>
      <description>&lt;P&gt;Good afternoon&lt;BR /&gt;I have a dashboard with multiple timechart where I am using a time picker -7 days and +7 days.&lt;BR /&gt;The problem is that not all timechart end on the same day because there are no events for future days.&lt;BR /&gt;Is it possible that the timechar always represents future days, even when there are no events for those days?&lt;BR /&gt;Image as an example:&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/559615#M38902</guid>
      <dc:creator>_Mauro_Costa_</dc:creator>
      <dc:date>2021-07-15T15:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart future dates</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/559625#M38903</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234479"&gt;@_Mauro_Costa_&lt;/a&gt;&amp;nbsp;.. timechart will work fine for future dates, though empty of logs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="test_index" earliest=-2h@h latest=+d@d  |timechart span=30m count by host&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timechart.jpg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15111i386DB845E299259C/image-size/large?v=v2&amp;amp;px=999" role="button" title="timechart.jpg" alt="timechart.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/559625#M38903</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2021-07-15T15:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart future dates</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/559634#M38906</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thanks for the answer&lt;BR /&gt;I'm not using the default _time but another date field that I converted to epoch&lt;BR /&gt;is the problem related to this?&lt;BR /&gt;my query is:&lt;BR /&gt;| inputlookup dashboard_latest_v1&lt;BR /&gt;| eval _time=time&lt;BR /&gt;| eval earliest = 1625698800&lt;BR /&gt;| eval latest = if(1626908400 &amp;lt; 0, now(), 1626908400)&lt;BR /&gt;| where _time &amp;gt;= earliest AND _time &amp;lt;= latest&lt;BR /&gt;| lookup zonef zf_id AS zonef_id OUTPUT cco_description&lt;BR /&gt;| lookup client c_id AS cliente_id OUTPUT c_name&lt;BR /&gt;| lookup project p_id AS project_id OUTPUT p_name&lt;BR /&gt;| lookup contexto ci_id AS contexto_id OUTPUT ci_description&lt;BR /&gt;| lookup partner par_id AS parceiro_id OUTPUT par_description&lt;BR /&gt;| fillnull value=Others par_description&lt;BR /&gt;| search segment = "internal" AND cco_description="*" AND c_name IN ("*") AND p_name IN ("*") AND ci_description IN ("*") AND par_description IN ("*")&lt;BR /&gt;| timechart span=1d count BY segment&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/559634#M38906</guid>
      <dc:creator>_Mauro_Costa_</dc:creator>
      <dc:date>2021-07-15T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart future dates</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/559643#M38908</link>
      <description>&lt;P&gt;| eval latest = if(1626908400 &amp;lt; 0, now(), 1626908400)&lt;BR /&gt;&amp;lt;some logic is wrong in calculating the latest.. "1626908400 &amp;lt; 0" will always fail and it latest will always be assigned "1626908400" &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the earliest and latest are not added to the search command.. once you add that, the timechart will work fine i think. please check the latest calculation and update us back, thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/559643#M38908</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2021-07-15T16:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart future dates</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/560192#M38953</link>
      <description>&lt;P&gt;if i use &lt;SPAN&gt;earliest and latest&lt;/SPAN&gt; in the search, no results are shown, image attached.&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;&amp;nbsp;you're right, the logic of &lt;SPAN&gt;latest&lt;/SPAN&gt; doesn't make sense&amp;nbsp;but it doesn't influence the results.&lt;BR /&gt;how search for earliest and latest using an&amp;nbsp;&lt;SPAN&gt;inputlookup?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 10:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-future-dates/m-p/560192#M38953</guid>
      <dc:creator>_Mauro_Costa_</dc:creator>
      <dc:date>2021-07-20T10:57:30Z</dc:date>
    </item>
  </channel>
</rss>

