<?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: print latest and values of status in an order. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481375#M134902</link>
    <description>&lt;PRE&gt;&lt;CODE&gt; | stats value(status) as statuses latest(_time) as _time by id
 | sort _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You haven't provided enough information for us to help you. Can you provide a snippet of censored data and what you'd like the output to look like?&lt;/P&gt;</description>
    <pubDate>Sat, 09 Nov 2019 02:09:25 GMT</pubDate>
    <dc:creator>jacobpevans</dc:creator>
    <dc:date>2019-11-09T02:09:25Z</dc:date>
    <item>
      <title>print latest and values of status in an order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481372#M134899</link>
      <description>&lt;P&gt;I have some this like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats value(status) by time, id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to print the latest time, values(status) in the order they got indexed or they happened by id. &lt;/P&gt;

&lt;P&gt;Can someone help, Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 01:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481372#M134899</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2019-11-09T01:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: print latest and values of status in an order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481373#M134900</link>
      <description>&lt;P&gt;Greetings @sandeepmakkena,&lt;/P&gt;

&lt;P&gt;Please expand more. Based on what little you've provided, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats value(status) latest(_indextime) as _indextime latest(_time) as _time by time, id
| convert ctime(_indextime) as indextime
| convert ctime(_time) as _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Jacob&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 01:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481373#M134900</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-11-09T01:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: print latest and values of status in an order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481374#M134901</link>
      <description>&lt;P&gt;Values(status) are printing in alphabetical order, I want them to be in the order of they occurred.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 02:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481374#M134901</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2019-11-09T02:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: print latest and values of status in an order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481375#M134902</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; | stats value(status) as statuses latest(_time) as _time by id
 | sort _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You haven't provided enough information for us to help you. Can you provide a snippet of censored data and what you'd like the output to look like?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 02:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481375#M134902</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-11-09T02:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: print latest and values of status in an order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481376#M134903</link>
      <description>&lt;P&gt;What you are saying will sort all the results but, not the status from values(status) output.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 03:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481376#M134903</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2019-11-09T03:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: print latest and values of status in an order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481377#M134904</link>
      <description>&lt;P&gt;If you use the &lt;CODE&gt;values()&lt;/CODE&gt; aggregation function, it will sort them alphabetically but if you use the &lt;CODE&gt;list()&lt;/CODE&gt; aggregation function, it will preserve the order of the events at the point you called &lt;CODE&gt;stats&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 22:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481377#M134904</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-09T22:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: print latest and values of status in an order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481378#M134905</link>
      <description>&lt;P&gt;See @woodcock 's answer&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 22:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/print-latest-and-values-of-status-in-an-order/m-p/481378#M134905</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-11-13T22:34:59Z</dc:date>
    </item>
  </channel>
</rss>

