<?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 reverse results of dedup in the same command ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-reverse-results-of-dedup-in-the-same-command/m-p/324980#M96925</link>
    <description>&lt;P&gt;This does not give me the expected result...It is exactly the same problem but reversed...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;9 - DOWN
4 - UP
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Jul 2017 07:46:10 GMT</pubDate>
    <dc:creator>welcominh</dc:creator>
    <dc:date>2017-07-26T07:46:10Z</dc:date>
    <item>
      <title>How to reverse results of dedup in the same command ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reverse-results-of-dedup-in-the-same-command/m-p/324978#M96923</link>
      <description>&lt;P&gt;Im having an issue when trying to dedup some values. Here are the logs of servers states im having in Splunk, from the latest to the oldest&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1 - UP
2 - UP
3 - UP
4 - UP
5 - DOWN
6 - DOWN
7 - DOWN
8 - DOWN
9 - DOWN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When trying to dedup with  &lt;CODE&gt;dedup state consecutive=true&lt;/CODE&gt; i get the following results :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1 - UP
5 - DOWN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any way to get instead the following results ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;4 - UP
5 - DOWN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That is to say the oldest result for UP values, and the latest for DOWN values.&lt;/P&gt;

&lt;P&gt;Thanks in advance !&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 14:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reverse-results-of-dedup-in-the-same-command/m-p/324978#M96923</guid>
      <dc:creator>welcominh</dc:creator>
      <dc:date>2017-07-25T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to reverse results of dedup in the same command ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reverse-results-of-dedup-in-the-same-command/m-p/324979#M96924</link>
      <description>&lt;P&gt;You can do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search giving latest to earliest listing of states
| reverse | dedup state consecutive=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search giving latest to earliest listing of states
| dedup state consecutive=true sortby +_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jul 2017 17:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reverse-results-of-dedup-in-the-same-command/m-p/324979#M96924</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-25T17:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to reverse results of dedup in the same command ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reverse-results-of-dedup-in-the-same-command/m-p/324980#M96925</link>
      <description>&lt;P&gt;This does not give me the expected result...It is exactly the same problem but reversed...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;9 - DOWN
4 - UP
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 07:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reverse-results-of-dedup-in-the-same-command/m-p/324980#M96925</guid>
      <dc:creator>welcominh</dc:creator>
      <dc:date>2017-07-26T07:46:10Z</dc:date>
    </item>
  </channel>
</rss>

