<?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: Removing 1st line from the event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348914#M103285</link>
    <description>&lt;P&gt;Regular expression for your header. Since you have  not provided sample for your data, i cannot tell exactly. You can use something like &lt;A href="https://regex101.com/#python"&gt;https://regex101.com/#python&lt;/A&gt; to help you write a regex. &lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2017 20:51:47 GMT</pubDate>
    <dc:creator>aliakseidzianis</dc:creator>
    <dc:date>2017-06-16T20:51:47Z</dc:date>
    <item>
      <title>Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348907#M103278</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I have a event with the column names like Type      Category       Count         CPU in my event 1st line.&lt;BR /&gt;
I don't want the columns names in my splunk report.&lt;BR /&gt;
How do i remove the 1st line of the event&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 19:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348907#M103278</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-06-16T19:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348908#M103279</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;i found a neat solution for this.&lt;/P&gt;

&lt;P&gt;Try the following as in this example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | table host source sourcetype | rename host AS " " source AS "  " sourcetype AS "   "
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;rename the first field with only one space character, the second with two space characters, the third with three space characters... and so on&lt;/P&gt;

&lt;P&gt;This removes the column names &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 19:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348908#M103279</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2017-06-16T19:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348909#M103280</link>
      <description>&lt;P&gt;Your requirement is better understood with a sample event, and corresponding expected output. (it's confusing when you say you've columns and you want to remove line??)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 19:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348909#M103280</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-16T19:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348910#M103281</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;TYPE                            Category             Count           CPU Usage (%)
Data Node                       Hadoop                26               0.17
Flume                           Hadoop                9                0.2
ResourceManager                 Hadoop                2                0.06
Hadoop                          ZooKeeper             5                0.19
Foyer                           Hadoop                2                0.28
Splunk                          Hadoop                1                0.06
RabbitMQ                        Non-Hadoop            7                0.98
PostGreSQL                      Non-Hadoop            3                0.11
TC_Server                       Non-Hadoop            12               0.67
Edge                            Hadoop                2                0.19
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my event.&lt;BR /&gt;
Here, i don't want the 1st column&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 19:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348910#M103281</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-06-16T19:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348911#M103282</link>
      <description>&lt;P&gt;It probably means that splunk does not see it as a header. Look at the props section about &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf#Structured_Data_Header_Extraction_and_configuration"&gt;structured data&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELD_HEADER_REGEX = &amp;lt;regex&amp;gt;
* A regular expression that specifies a pattern for prefixed headers. Note
  that the actual header starts after the pattern and it is not included in
  the header field.
* This attribute supports the use of the special characters described above.

HEADER_FIELD_LINE_NUMBER = &amp;lt;integer&amp;gt;
* Tells Splunk the line number of the line within the file that contains the
  header fields.  If set to 0, Splunk attempts to locate the header fields
  within the file automatically.
* The default value is set to 0.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf#Structured_Data_Header_Extraction_and_configuration"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf#Structured_Data_Header_Extraction_and_configuration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348911#M103282</guid>
      <dc:creator>aliakseidzianis</dc:creator>
      <dc:date>2017-06-16T20:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348912#M103283</link>
      <description>&lt;P&gt;I downvoted this post because it does not seems like it has anything to do with the question. why would you want your data without any column names?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348912#M103283</guid>
      <dc:creator>aliakseidzianis</dc:creator>
      <dc:date>2017-06-16T20:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348913#M103284</link>
      <description>&lt;P&gt;I seen this. I made the respective changes also.&lt;BR /&gt;
What to put here &lt;BR /&gt;
 FIELD_HEADER_REGEX = &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348913#M103284</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2020-09-29T14:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348914#M103285</link>
      <description>&lt;P&gt;Regular expression for your header. Since you have  not provided sample for your data, i cannot tell exactly. You can use something like &lt;A href="https://regex101.com/#python"&gt;https://regex101.com/#python&lt;/A&gt; to help you write a regex. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348914#M103285</guid>
      <dc:creator>aliakseidzianis</dc:creator>
      <dc:date>2017-06-16T20:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348915#M103286</link>
      <description>&lt;P&gt;this was the original request by the poster... &lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348915#M103286</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2017-06-16T20:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348916#M103287</link>
      <description>&lt;P&gt;My understanding that his main question is: "How do i remove the 1st line of the event". But I may be wrong. I agree, it is not very clear. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:55:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348916#M103287</guid>
      <dc:creator>aliakseidzianis</dc:creator>
      <dc:date>2017-06-16T20:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348917#M103288</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;TYPE                            Category             Count           CPU Usage (%)
Data Node                       Hadoop                26               0.17
Flume                           Hadoop                9                0.2
ResourceManager                 Hadoop                2                0.06
Hadoop                          ZooKeeper             5                0.19
Foyer                           Hadoop                2                0.28
Splunk                          Hadoop                1                0.06
RabbitMQ                        Non-Hadoop            7                0.98
PostGreSQL                      Non-Hadoop            3                0.11
TC_Server                       Non-Hadoop            12               0.67
Edge                            Hadoop                2                0.19
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my sample data`&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348917#M103288</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-06-16T20:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348918#M103289</link>
      <description>&lt;P&gt;Sorry. My main requirement is i want to remove the 1st line of the event. which is like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TYPE                            Category             Count           CPU Usage (%)
Data Node                       Hadoop                26               0.17
Flume                           Hadoop                9                0.2
ResourceManager                 Hadoop                2                0.06
Hadoop                          ZooKeeper             5                0.19
Foyer                           Hadoop                2                0.28
Splunk                          Hadoop                1                0.06
RabbitMQ                        Non-Hadoop            7                0.98
PostGreSQL                      Non-Hadoop            3                0.11
TC_Server                       Non-Hadoop            12               0.67
Edge                            Hadoop                2                0.19
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348918#M103289</guid>
      <dc:creator>prathapkcsc</dc:creator>
      <dc:date>2017-06-16T21:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348919#M103290</link>
      <description>&lt;P&gt;@aliakseidzianisau - Downvoting should be reserved for suggestions/solutions that could be potentially harmful for a Splunk environment or goes completely against known best practices. pyro_wood was attempting to answer the question even though the original poster was vague in their explanation. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348919#M103290</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-06-16T21:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348920#M103291</link>
      <description>&lt;P&gt;my bad. Thanks for clarification! &lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 13:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348920#M103291</guid>
      <dc:creator>aliakseidzianis</dc:creator>
      <dc:date>2017-06-19T13:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing 1st line from the event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348921#M103292</link>
      <description>&lt;P&gt;Hi @prathapkcsc,&lt;/P&gt;

&lt;P&gt;Can you please try below rex?? Here I tried to separate First Line and remaining.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;&amp;lt;YOUR SEARCH&amp;gt;&amp;gt; | rex field=_raw "^(?&amp;lt;firstLine&amp;gt;.*)\n.(?&amp;lt;remainingLine&amp;gt;[\s\S]*)$" |  table firstLine remainingLine
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Kamlesh&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 05:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-1st-line-from-the-event/m-p/348921#M103292</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-06-20T05:06:03Z</dc:date>
    </item>
  </channel>
</rss>

