<?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 do I bring serial number in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/534873#M182676</link>
    <description>&lt;P&gt;You can try 'Format'-&amp;gt;'Row Numbers'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jawaharas_0-1609895521463.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12442iAF514D55A7A07475/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jawaharas_0-1609895521463.png" alt="jawaharas_0-1609895521463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2021 01:14:02 GMT</pubDate>
    <dc:creator>jawaharas</dc:creator>
    <dc:date>2021-01-06T01:14:02Z</dc:date>
    <item>
      <title>How do I bring serial number in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99354#M182671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have four line result as follows:&lt;/P&gt;

&lt;P&gt;value1&lt;BR /&gt;
value2&lt;BR /&gt;
value3&lt;BR /&gt;
value4&lt;/P&gt;

&lt;P&gt;but I want the serial no. should be before each line as follows:&lt;/P&gt;

&lt;P&gt;1 value1&lt;BR /&gt;
2 value2&lt;BR /&gt;
3 value3&lt;BR /&gt;
4 value&lt;/P&gt;

&lt;P&gt;When I export in .csv or .xlsx format. I should get my result along with serial no.&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 16:33:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99354#M182671</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2012-10-23T16:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I bring serial number in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99355#M182672</link>
      <description>&lt;P&gt;Do you mean &lt;STRONG&gt;serial order&lt;/STRONG&gt;  or &lt;STRONG&gt;serial number&lt;/STRONG&gt; ?&lt;/P&gt;

&lt;P&gt;In Splunk the the order is chronological, based on the timestamp.&lt;BR /&gt;
Or i you want you own order, in your logs, add a columns with an incrementing number.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 03:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99355#M182672</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-10-24T03:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I bring serial number in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99356#M182673</link>
      <description>&lt;P&gt;I want to add a separate column which would contain the serial number with the incrementing number. &lt;/P&gt;

&lt;P&gt;Please help me regarding this !!&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;BR /&gt;
Abhay&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 12:13:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99356#M182673</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2012-10-24T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I bring serial number in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99357#M182674</link>
      <description>&lt;P&gt;If I understand your question, you want to have an incremental row number paired with your results. If this is the case, this is similar to &lt;A href="http://splunk-base.splunk.com/answers/63126/can-we-display-the-sno-field-along-with-my-table-command"&gt;this question&lt;/A&gt; and a similar answer applies.&lt;/P&gt;

&lt;P&gt;The Splunk command you are looking for here is &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Accum"&gt;accum&lt;/A&gt; -which increments a field value by one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah sourcetype=blah blah | eval SNO=1 | accum SNO | table SNO Field1 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It should be noted, however, that Splunk will show row numbers in a table by default. The numbering will begin at one (1).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99357#M182674</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2012-10-24T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I bring serial number in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99358#M182675</link>
      <description>&lt;P&gt;This definitely helped me!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 19:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/99358#M182675</guid>
      <dc:creator>srizan</dc:creator>
      <dc:date>2018-12-07T19:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I bring serial number in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/534873#M182676</link>
      <description>&lt;P&gt;You can try 'Format'-&amp;gt;'Row Numbers'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jawaharas_0-1609895521463.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12442iAF514D55A7A07475/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jawaharas_0-1609895521463.png" alt="jawaharas_0-1609895521463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 01:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-bring-serial-number-in-splunk/m-p/534873#M182676</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2021-01-06T01:14:02Z</dc:date>
    </item>
  </channel>
</rss>

