<?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 use an additional conditional with the top command (ex: count &amp;gt; 10) and add a sequential number column to the table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188399#M54268</link>
    <description>&lt;P&gt;Hi @okug&lt;/P&gt;

&lt;P&gt;Try and see if the answer on this post can help answer your 1st question.&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/216542/how-to-add-a-first-column-to-number-each-row-in-a.html"&gt;http://answers.splunk.com/answers/216542/how-to-add-a-first-column-to-number-each-row-in-a.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2015 23:27:28 GMT</pubDate>
    <dc:creator>ppablo</dc:creator>
    <dc:date>2015-03-18T23:27:28Z</dc:date>
    <item>
      <title>How to use an additional conditional with the top command (ex: count &gt; 10) and add a sequential number column to the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188395#M54264</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have questions about the top command.&lt;/P&gt;

&lt;P&gt;First one is pretty simple.&lt;BR /&gt;
How I can add sequential number column in top result table?&lt;/P&gt;

&lt;P&gt;2nd one is.&lt;BR /&gt;
Is there any way to use an additional conditional to top command? I want to do something like:&lt;BR /&gt;
top limit=30 and percent &amp;gt; 1 ....&lt;BR /&gt;
top limit=50 and count &amp;gt;= 10 ....&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188395#M54264</guid>
      <dc:creator>okug</dc:creator>
      <dc:date>2015-03-18T14:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an additional conditional with the top command (ex: count &gt; 10) and add a sequential number column to the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188396#M54265</link>
      <description>&lt;P&gt;| top limit=30 xxx | where count &amp;gt; 10&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188396#M54265</guid>
      <dc:creator>satishsdange</dc:creator>
      <dc:date>2015-03-18T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an additional conditional with the top command (ex: count &gt; 10) and add a sequential number column to the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188397#M54266</link>
      <description>&lt;P&gt;Great! Thanks!!&lt;BR /&gt;
Any idea for 1st question?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 20:04:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188397#M54266</guid>
      <dc:creator>okug</dc:creator>
      <dc:date>2015-03-18T20:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an additional conditional with the top command (ex: count &gt; 10) and add a sequential number column to the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188398#M54267</link>
      <description>&lt;P&gt;Try this..&lt;/P&gt;

&lt;PRE&gt;
| top limit=30 | eval s_no =1 | accum s_no
| top limit=30 | where percent &amp;gt; 1
| top limit=30 | where count &amp;gt;= 10
&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Mar 2015 20:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188398#M54267</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-03-18T20:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an additional conditional with the top command (ex: count &gt; 10) and add a sequential number column to the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188399#M54268</link>
      <description>&lt;P&gt;Hi @okug&lt;/P&gt;

&lt;P&gt;Try and see if the answer on this post can help answer your 1st question.&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/216542/how-to-add-a-first-column-to-number-each-row-in-a.html"&gt;http://answers.splunk.com/answers/216542/how-to-add-a-first-column-to-number-each-row-in-a.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 23:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188399#M54268</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-03-18T23:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an additional conditional with the top command (ex: count &gt; 10) and add a sequential number column to the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188400#M54269</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;top limit=30 foo| where percent &amp;gt;= 1 | streamstats count as row | fields row,foo,count,percent&lt;/P&gt;

&lt;P&gt;worked.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 17:19:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188400#M54269</guid>
      <dc:creator>okug</dc:creator>
      <dc:date>2015-04-10T17:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an additional conditional with the top command (ex: count &gt; 10) and add a sequential number column to the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188401#M54270</link>
      <description>&lt;P&gt;Hi @okug&lt;/P&gt;

&lt;P&gt;Great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; glad it worked!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 00:43:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-an-additional-conditional-with-the-top-command-ex/m-p/188401#M54270</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-04-15T00:43:14Z</dc:date>
    </item>
  </channel>
</rss>

