<?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: Find the second lowest. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248281#M74091</link>
    <description>&lt;P&gt;DaniR86, did either of the below help you get to your answer?&lt;/P&gt;

&lt;P&gt;If so, could you please mark one as answered?  &lt;/P&gt;

&lt;P&gt;If not, give us a bit more detail about how far you've gotten and maybe we can help you with the rest!  &lt;/P&gt;</description>
    <pubDate>Sun, 17 Jul 2016 12:48:34 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2016-07-17T12:48:34Z</dc:date>
    <item>
      <title>Find the second lowest.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248278#M74088</link>
      <description>&lt;P&gt;I am trying to add a new field to my data that lists the second lowest number in a data set. &lt;/P&gt;

&lt;P&gt;So if I have&lt;/P&gt;

&lt;P&gt;New York  100&lt;BR /&gt;
New York  300&lt;BR /&gt;
New York  150&lt;BR /&gt;
Florida       20&lt;BR /&gt;
Florida       23&lt;BR /&gt;
Florida      17&lt;BR /&gt;
Las Vegas 70&lt;BR /&gt;
Las Vegas 78&lt;BR /&gt;
Las Vegas 55&lt;/P&gt;

&lt;P&gt;I would like to see...&lt;/P&gt;

&lt;P&gt;New York  150&lt;BR /&gt;
Florida       20&lt;BR /&gt;
Las Vegas  70 &lt;/P&gt;

&lt;P&gt;The search I have has quite a lot in it already so building a new field with an eval statement near the start will probably be my best option.&lt;/P&gt;

&lt;P&gt;Thanks in advance for any help x&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 10:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248278#M74088</guid>
      <dc:creator>DaniR86</dc:creator>
      <dc:date>2016-07-11T10:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find the second lowest.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248279#M74089</link>
      <description>&lt;P&gt;Add to your existing search...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top limit=2 MyField | rare limit=1 MyField
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Obviously, put your field name in for &lt;CODE&gt;MyField&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 11:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248279#M74089</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-07-11T11:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find the second lowest.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248280#M74090</link>
      <description>&lt;P&gt;Try this (assuming two fields shown in your example are city and count)&lt;BR /&gt;
&lt;STRONG&gt;Added missing pipe&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | sort count | streamstats count as c by city | where c=2 | fields - c
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jul 2016 12:09:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248280#M74090</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-11T12:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find the second lowest.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248281#M74091</link>
      <description>&lt;P&gt;DaniR86, did either of the below help you get to your answer?&lt;/P&gt;

&lt;P&gt;If so, could you please mark one as answered?  &lt;/P&gt;

&lt;P&gt;If not, give us a bit more detail about how far you've gotten and maybe we can help you with the rest!  &lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2016 12:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-second-lowest/m-p/248281#M74091</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-07-17T12:48:34Z</dc:date>
    </item>
  </channel>
</rss>

