<?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: sorting by latest event - dashboard - table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108201#M28148</link>
    <description>&lt;P&gt;You're doing "top" as the second command in that search. top generates statistics on events and returns the aggregated statistics for the events, so the details for those events (including timestamp) will not be available after running top. This is why sorting by _time does not work in this search. What is it you want the search to show?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2011 15:59:33 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-11-10T15:59:33Z</dc:date>
    <item>
      <title>sorting by latest event - dashboard - table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108196#M28143</link>
      <description>&lt;P&gt;I have a dashboard with a few table views.  I want the first event to be the most recent event (so sort by most recent event) - like the way they are displayed by default when you do a search.  I do not have a time stamp field.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 12:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108196#M28143</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2011-11-10T12:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: sorting by latest event - dashboard - table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108197#M28144</link>
      <description>&lt;P&gt;You always have a timestamp field! It's called &lt;CODE&gt;_time&lt;/CODE&gt; and by sorting descending by it you get the most recent events first.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | sort - _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Nov 2011 12:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108197#M28144</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-11-10T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: sorting by latest event - dashboard - table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108198#M28145</link>
      <description>&lt;P&gt;I tried this and it did not work, so instead I tried | top _time, field1, field2 and this works.  The only problem this creates is field1 might be repeated.  If I dedup field one, I get less than 10 results.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 13:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108198#M28145</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2011-11-10T13:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: sorting by latest event - dashboard - table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108199#M28146</link>
      <description>&lt;P&gt;You need to specify how it "did not work". What does your search look like? What does your dashboard XML look like? By default Splunk is returning the latest events first, so if the events in your table are sorted in any other order that implies you are doing something else in your search that interferes with that default behaviour.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 13:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108199#M28146</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-11-10T13:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: sorting by latest event - dashboard - table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108200#M28147</link>
      <description>&lt;P&gt;index=myindex action="AUTHN_LOGIN_EVENT" result="SUCCESS" my-Users earliest=-24h | top login_name, last_name, first_name | eval emp_name=last_name. ", " .first_name|rename emp_name as "Employee Name" | rename login_name as User-ID | table "User-ID" "Employee Name"| sort - _time&lt;BR /&gt;
&lt;TITLE&gt;Successful My Users&lt;/TITLE&gt;&lt;/P&gt;

&lt;P&gt;This will not sort by _time&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:05:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108200#M28147</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2020-09-28T10:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: sorting by latest event - dashboard - table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108201#M28148</link>
      <description>&lt;P&gt;You're doing "top" as the second command in that search. top generates statistics on events and returns the aggregated statistics for the events, so the details for those events (including timestamp) will not be available after running top. This is why sorting by _time does not work in this search. What is it you want the search to show?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 15:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sorting-by-latest-event-dashboard-table/m-p/108201#M28148</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-11-10T15:59:33Z</dc:date>
    </item>
  </channel>
</rss>

