<?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: Stripping header from input file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Stripping-header-from-input-file/m-p/65029#M13079</link>
    <description>&lt;P&gt;Use Header-based Index-time field extractions:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In your example above, you could use &lt;CODE&gt;HEADER_FIELD_LINE_NUMBER=4&lt;/CODE&gt; or if there is garbage before the field names in the header &lt;CODE&gt;FIELD_HEADER_REGEX=HEADER\s(.*)&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2014 16:37:56 GMT</pubDate>
    <dc:creator>ogdin</dc:creator>
    <dc:date>2014-02-13T16:37:56Z</dc:date>
    <item>
      <title>Stripping header from input file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Stripping-header-from-input-file/m-p/65027#M13077</link>
      <description>&lt;P&gt;Is there a way to strip the header from a data input? This is coming from a universal forwarder&lt;/P&gt;

&lt;P&gt;example&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;this is garbage&lt;BR /&gt;
this is also garbage&lt;BR /&gt;
end of garbage&lt;BR /&gt;
HEADER     DB_NAME DB_ID IO&lt;BR /&gt;
timestamp  test_db  1    100000&lt;BR /&gt;
..&lt;BR /&gt;
timestamp  last_db  10   500000&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I want to not index the first 4 lines (3 starting with &amp;gt; and the column heading line)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Stripping-header-from-input-file/m-p/65027#M13077</guid>
      <dc:creator>jhallman</dc:creator>
      <dc:date>2020-09-28T09:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping header from input file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Stripping-header-from-input-file/m-p/65028#M13078</link>
      <description>&lt;P&gt;hello world two&lt;BR /&gt;
hello world&lt;BR /&gt;
pet,phone,street&lt;BR /&gt;
cow,999-9999,taylor&lt;BR /&gt;
dog,777-7878,balor&lt;BR /&gt;
cat,656-5637,main&lt;BR /&gt;
pig,878-1212,pine&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[HEADER_NULLQ]&lt;BR /&gt;
REGEX= (pet|world)&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[your sourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE = False&lt;BR /&gt;
pulldown_type = 1&lt;BR /&gt;
TRANSFORMS-HEADER_NULLQ=HEADER_NULLQ&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Stripping-header-from-input-file/m-p/65028#M13078</guid>
      <dc:creator>davecroto</dc:creator>
      <dc:date>2020-09-28T14:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stripping header from input file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Stripping-header-from-input-file/m-p/65029#M13079</link>
      <description>&lt;P&gt;Use Header-based Index-time field extractions:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In your example above, you could use &lt;CODE&gt;HEADER_FIELD_LINE_NUMBER=4&lt;/CODE&gt; or if there is garbage before the field names in the header &lt;CODE&gt;FIELD_HEADER_REGEX=HEADER\s(.*)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Stripping-header-from-input-file/m-p/65029#M13079</guid>
      <dc:creator>ogdin</dc:creator>
      <dc:date>2014-02-13T16:37:56Z</dc:date>
    </item>
  </channel>
</rss>

