<?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 Display row numbers in output in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73042#M18267</link>
    <description>&lt;P&gt;I am indexing a CSV file into Splunk and wish to display the row number in a seperate column called 'row count'.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;Field 1 Field 2 Row Count Field 3&lt;BR /&gt;
 blah    blah      1        blah&lt;BR /&gt;
 blah    blah      2        blah&lt;BR /&gt;
 blah    blah      3        blah&lt;/P&gt;

&lt;P&gt;What is the best method to achieve this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2012 21:33:17 GMT</pubDate>
    <dc:creator>efelder0</dc:creator>
    <dc:date>2012-02-16T21:33:17Z</dc:date>
    <item>
      <title>Display row numbers in output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73042#M18267</link>
      <description>&lt;P&gt;I am indexing a CSV file into Splunk and wish to display the row number in a seperate column called 'row count'.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;Field 1 Field 2 Row Count Field 3&lt;BR /&gt;
 blah    blah      1        blah&lt;BR /&gt;
 blah    blah      2        blah&lt;BR /&gt;
 blah    blah      3        blah&lt;/P&gt;

&lt;P&gt;What is the best method to achieve this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2012 21:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73042#M18267</guid>
      <dc:creator>efelder0</dc:creator>
      <dc:date>2012-02-16T21:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Display row numbers in output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73043#M18268</link>
      <description>&lt;P&gt;Would displayRowNumbers work here? If so, how would it be configured in my search query?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2012 21:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73043#M18268</guid>
      <dc:creator>efelder0</dc:creator>
      <dc:date>2012-02-16T21:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Display row numbers in output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73044#M18269</link>
      <description>&lt;P&gt;Add &lt;CODE&gt;... | streamstats count as "Row Count"&lt;/CODE&gt; to your search&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 21:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73044#M18269</guid>
      <dc:creator>sanderdenheijer</dc:creator>
      <dc:date>2016-01-17T21:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Display row numbers in output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73045#M18270</link>
      <description>&lt;P&gt;Hi efelder0, &lt;/P&gt;

&lt;P&gt;you can set this in &lt;CODE&gt;viewstates.conf&lt;/CODE&gt; or in your XML with this option:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="displayRowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will work in the recent Splunk releases.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 02:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73045#M18270</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-01-18T02:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Display row numbers in output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73046#M18271</link>
      <description>&lt;P&gt;Adding to /opt/splunk/etc/apps/search/local/viewstates.conf does not seem to do anything in the search app.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 20:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-row-numbers-in-output/m-p/73046#M18271</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2016-01-19T20:29:18Z</dc:date>
    </item>
  </channel>
</rss>

