<?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: Is there a search or command that will number rows in a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350793#M103848</link>
    <description>&lt;P&gt;streamstats might be worth considering. Below is a standalone example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=3 | streamstats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your case just pipe the query to streamstats&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.. | streamstats count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Apr 2017 16:44:12 GMT</pubDate>
    <dc:creator>msivill_splunk</dc:creator>
    <dc:date>2017-04-26T16:44:12Z</dc:date>
    <item>
      <title>Is there a search or command that will number rows in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350790#M103845</link>
      <description>&lt;P&gt;is there any command to get row numbers in table?&lt;/P&gt;

&lt;P&gt;Like,&lt;BR /&gt;
I have a table like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host   source type
DFR    splunk_id
FGH    splunkd
THG    splunk_ui
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i would like to have like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NO  host   source type
1   DFR    splunk_id
2   FGH    splunkd
3   THG    splunk_ui
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350790#M103845</guid>
      <dc:creator>ThiruSplunk5676</dc:creator>
      <dc:date>2017-04-26T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or command that will number rows in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350791#M103846</link>
      <description>&lt;P&gt;You can try these.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search | eval NO=1 | accum NO
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search | streamstats count as NO
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350791#M103846</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-26T16:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or command that will number rows in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350792#M103847</link>
      <description>&lt;P&gt;Thank you so much, it works&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350792#M103847</guid>
      <dc:creator>ThiruSplunk5676</dc:creator>
      <dc:date>2017-04-26T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or command that will number rows in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350793#M103848</link>
      <description>&lt;P&gt;streamstats might be worth considering. Below is a standalone example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=3 | streamstats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your case just pipe the query to streamstats&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.. | streamstats count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-command-that-will-number-rows-in-a-table/m-p/350793#M103848</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2017-04-26T16:44:12Z</dc:date>
    </item>
  </channel>
</rss>

