<?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: How do I display _time on dashboard panel's title field? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412810#M40881</link>
    <description>&lt;P&gt;Please use below to set the time token. Also you may want to convert your time YYYY/mm/dd h:m:s format before passing it as token&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;set token="mytitle"&amp;gt;$result.time$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Oct 2018 01:52:14 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2018-10-10T01:52:14Z</dc:date>
    <item>
      <title>How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412800#M40871</link>
      <description>&lt;P&gt;Is there a simple way to display _time on the panel title fields? I am tying to create a dashboard and there are no date/time values in the index query, so I want to reply on _time.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Philip&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 17:58:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412800#M40871</guid>
      <dc:creator>pshangguan</dc:creator>
      <dc:date>2018-10-09T17:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412801#M40872</link>
      <description>&lt;P&gt;Do you want the current time to appear on the dashboard or do you need a time from a query?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412801#M40872</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-10-09T18:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412802#M40873</link>
      <description>&lt;P&gt;The _time field will be there in your index. You want to display time field for all events or a single event? You can search on index and pass the _time field as token and pass the token to your panel title&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412802#M40873</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-09T18:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412803#M40874</link>
      <description>&lt;P&gt;I want to catch the event time which I believe is in _time.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 19:22:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412803#M40874</guid>
      <dc:creator>pshangguan</dc:creator>
      <dc:date>2018-10-09T19:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412804#M40875</link>
      <description>&lt;P&gt;A single event. I am trying to find the latest event and display its status(using single field panel), and I want to use the event time _time and display it in the title field.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 19:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412804#M40875</guid>
      <dc:creator>pshangguan</dc:creator>
      <dc:date>2018-10-09T19:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412805#M40876</link>
      <description>&lt;P&gt;You can have your query assuming you have a status field in event&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
&amp;lt;title&amp;gt;$title$&amp;lt;/title&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;
index=&amp;lt;yourindexname&amp;gt; | stats latest(status) as status, latest(_time) as time| fields status time
&amp;lt;/query&amp;gt;
&amp;lt;done&amp;gt;
&amp;lt;set token="title"&amp;gt;time&amp;lt;set&amp;gt;
&amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2018 19:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412805#M40876</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-09T19:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412806#M40877</link>
      <description>&lt;P&gt;&lt;CODE&gt;latest(_time) as time&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 20:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412806#M40877</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2018-10-09T20:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412807#M40878</link>
      <description>&lt;P&gt;Sorry was a typo, updated it. Thanks for pointing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 20:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412807#M40878</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-09T20:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412808#M40879</link>
      <description>&lt;P&gt;you should convert the comment to an answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 20:55:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412808#M40879</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2018-10-09T20:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412809#M40880</link>
      <description>&lt;P&gt;I have the following code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;single&amp;gt;
    &amp;lt;title&amp;gt;$mytitle$&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=jenkins |spath job_name | search job_name="job/utl-dataflow-check-DEV2/" | stats latest(job_result) as status, latest(_time) as time | fields status time&amp;lt;/query&amp;gt;
      &amp;lt;done&amp;gt;
        &amp;lt;set token="mytitle"&amp;gt;time&amp;lt;/set&amp;gt;
      &amp;lt;/done&amp;gt;
      &amp;lt;earliest&amp;gt;-4h@m&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
  &amp;lt;/single&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am getting "time" displayed in the panel instead of the actual time. I run the query in splunk search and was able to see the status and the time.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 22:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412809#M40880</guid>
      <dc:creator>pshangguan</dc:creator>
      <dc:date>2018-10-09T22:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412810#M40881</link>
      <description>&lt;P&gt;Please use below to set the time token. Also you may want to convert your time YYYY/mm/dd h:m:s format before passing it as token&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;set token="mytitle"&amp;gt;$result.time$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Oct 2018 01:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412810#M40881</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-10T01:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412811#M40882</link>
      <description>&lt;P&gt;This may get a little far from your original question, but including it in case it's helpful:&lt;/P&gt;

&lt;P&gt;If you are providing a way for your user to select their search times anyway, then you can just use that token elsewhere in your title. Personally I would rather display the end of the search period rather than the last event found. If so, then use the earliest and latest modifiers, for example: $timer_tok.latest$&lt;/P&gt;

&lt;P&gt;Alternately if you want to know when the Search Job stopped, try $job.latestTime$&lt;/P&gt;

&lt;P&gt;This page has some great token info including both of those examples:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.0/Viz/tokens"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.0/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 02:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412811#M40882</guid>
      <dc:creator>dstile</dc:creator>
      <dc:date>2018-10-10T02:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412812#M40883</link>
      <description>&lt;P&gt;That worked. Thanks!!!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 20:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412812#M40883</guid>
      <dc:creator>pshangguan</dc:creator>
      <dc:date>2018-10-10T20:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412813#M40884</link>
      <description>&lt;P&gt;Please accept the answer , if it resolved your issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 20:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/412813#M40884</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-10T20:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display _time on dashboard panel's title field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/656188#M54048</link>
      <description>&lt;P&gt;Hi Pshangguan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I modity time into $result.time$, the actual time still doesn't appear on the title.&lt;/P&gt;&lt;P&gt;Do you succesfully make the actual time appear in your panel title ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 05:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-display-time-on-dashboard-panel-s-title-field/m-p/656188#M54048</guid>
      <dc:creator>Jouman</dc:creator>
      <dc:date>2023-08-31T05:17:46Z</dc:date>
    </item>
  </channel>
</rss>

