<?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 to make the dashboard to display latest result by default in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-dashboard-to-display-latest-result-by-default/m-p/580413#M202222</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240128"&gt;@Azwaliyana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can configure you dropdowns to display as default the first result of your search (the first result is the latest!) using something like this example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="Time"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="assessment"&amp;gt;
      &amp;lt;label&amp;gt;Assessments&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;_time&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;_time&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;selectFirstChoice&amp;gt;true&amp;lt;/selectFirstChoice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
          eventtype=tenable_assessment
          | dedup _time
          | sort -_time
          | table _time
        &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;prefix&amp;gt;AssessmentDate="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, using the&amp;nbsp;selectFirstChoice=True option, your dropdown displays as default the first (latest) result of the search used in the input.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2022 08:28:11 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-01-10T08:28:11Z</dc:date>
    <item>
      <title>How to make the dashboard to display latest result by default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-dashboard-to-display-latest-result-by-default/m-p/580412#M202221</link>
      <description>&lt;P&gt;I have made my search query for all time because I have created dropdown for month date and year. But I want the search result to always display the latest result. How can I do that?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I pass the date month and year to the search query. But f or the default, I want the dashboard to always display the latest result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Azwaliyana_0-1641802524883.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17477i452F24F8EA936F02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Azwaliyana_0-1641802524883.png" alt="Azwaliyana_0-1641802524883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 08:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-dashboard-to-display-latest-result-by-default/m-p/580412#M202221</guid>
      <dc:creator>Azwaliyana</dc:creator>
      <dc:date>2022-01-10T08:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the dashboard to display latest result by default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-dashboard-to-display-latest-result-by-default/m-p/580413#M202222</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240128"&gt;@Azwaliyana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can configure you dropdowns to display as default the first result of your search (the first result is the latest!) using something like this example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="Time"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="assessment"&amp;gt;
      &amp;lt;label&amp;gt;Assessments&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;_time&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;_time&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;selectFirstChoice&amp;gt;true&amp;lt;/selectFirstChoice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
          eventtype=tenable_assessment
          | dedup _time
          | sort -_time
          | table _time
        &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$Time.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$Time.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;prefix&amp;gt;AssessmentDate="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, using the&amp;nbsp;selectFirstChoice=True option, your dropdown displays as default the first (latest) result of the search used in the input.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 08:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-dashboard-to-display-latest-result-by-default/m-p/580413#M202222</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-01-10T08:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the dashboard to display latest result by default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-dashboard-to-display-latest-result-by-default/m-p/580553#M202258</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;Thank you for the solution&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 06:58:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-the-dashboard-to-display-latest-result-by-default/m-p/580553#M202258</guid>
      <dc:creator>Azwaliyana</dc:creator>
      <dc:date>2022-01-11T06:58:06Z</dc:date>
    </item>
  </channel>
</rss>

