<?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 to ignore first three line of my log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64713#M13003</link>
    <description>&lt;P&gt;On the forwarder or indexer (wherever the file is), you can set the sourcetype for the file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# inputs.conf
[monitor://yourfilename]
sourcetype=your_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the indexer, you can get rid of the first lines like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# props.conf
[your_sourcetype]
TRANSFORMS-t1=eliminate_header

# transforms.conf
[eliminate_header]
REGEX=^(?:Log|Running)\s
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should not need to set crcSalt with this technique. This eliminates any lines beginning with the word "Log" or "Running".&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2012 08:44:35 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-06-01T08:44:35Z</dc:date>
    <item>
      <title>How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64708#M12998</link>
      <description>&lt;P&gt;Is there any way to ignore first three line from my text format log?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 11:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64708#M12998</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-05-31T11:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64709#M12999</link>
      <description>&lt;P&gt;What type of log file is it?  Do the lines start with a "#" or something else?  If so you can route them to the null queue to ignore them.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.0.9/Admin/Routeeventstospecificqueues"&gt;http://docs.splunk.com/Documentation/Splunk/4.0.9/Admin/Routeeventstospecificqueues&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When skipping the first few lines, in inputs.conf you'll want to set crcSalt=&amp;lt;SOURCE&amp;gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 11:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64709#M12999</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-05-31T11:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64710#M13000</link>
      <description>&lt;P&gt;my three line are&lt;/P&gt;

&lt;P&gt;Log file created at: 2012/05/17 11:47:18&lt;BR /&gt;
Running on machine: TEST-W2K&lt;BR /&gt;
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 12:21:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64710#M13000</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-05-31T12:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64711#M13001</link>
      <description>&lt;P&gt;there is common pattern for my log first char is always I or W or F or E. &lt;BR /&gt;
I think this is better way to skip three line, search only based regex _raw="^[I|W|E|F]"&lt;BR /&gt;
Is it good idea?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 12:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64711#M13001</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-05-31T12:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64712#M13002</link>
      <description>&lt;P&gt;There is common pattern in my log file, every log message contain a character it could be I or W or E or F.&lt;/P&gt;

&lt;P&gt;do you think its good idea to use regex _raw="^[I|W|E|F]" for all search result?&lt;/P&gt;

&lt;P&gt;if it good then How can I create sourcetype based on above regular expression?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 12:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64712#M13002</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-05-31T12:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64713#M13003</link>
      <description>&lt;P&gt;On the forwarder or indexer (wherever the file is), you can set the sourcetype for the file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# inputs.conf
[monitor://yourfilename]
sourcetype=your_sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the indexer, you can get rid of the first lines like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# props.conf
[your_sourcetype]
TRANSFORMS-t1=eliminate_header

# transforms.conf
[eliminate_header]
REGEX=^(?:Log|Running)\s
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should not need to set crcSalt with this technique. This eliminates any lines beginning with the word "Log" or "Running".&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 08:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64713#M13003</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-01T08:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64714#M13004</link>
      <description>&lt;P&gt;Its not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; here is my conf settings from splunk forwarder&lt;/P&gt;

&lt;P&gt;[root@hv-centos local]# cat inputs.conf &lt;BR /&gt;
[default]&lt;BR /&gt;
host = hv-centos&lt;/P&gt;

&lt;P&gt;[monitor:/home/manoj/rels/PATCH/log/default]&lt;BR /&gt;
sourcetype = TAFC_LOG_LINE&lt;/P&gt;

&lt;P&gt;[root@hv-centos local]# cat props.conf &lt;BR /&gt;
[TAFC_LOG_LINE]&lt;BR /&gt;
TRANSFORMS-t1=eliminate_first_three_line&lt;/P&gt;

&lt;P&gt;[root@hv-centos local]# cat transforms.conf &lt;BR /&gt;
[eliminate_first_three_line]&lt;BR /&gt;
REGEX=^(?:Log|Running)\s&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;I restarted splunk after the changes&lt;BR /&gt;
I can still see the first three line form logs in splunk main instance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64714#M13004</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2020-09-28T11:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64715#M13005</link>
      <description>&lt;P&gt;This will not eliminate data that has already been indexed. Remember that Splunk is essentially a "write once" datastore. &lt;/P&gt;

&lt;P&gt;If you want to eliminate data that has already been indexed, you will need to clean eventdata or use the delete command. Restarting Splunk won't do the job.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/RemovedatafromSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 12:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64715#M13005</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-01T12:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64716#M13006</link>
      <description>&lt;P&gt;Any Update regarding my question?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 10:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64716#M13006</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-06-06T10:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64717#M13007</link>
      <description>&lt;P&gt;I was changing *.conf files from Splunkforwarder instead of main instance, now these lines are not displaying in search result.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 10:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64717#M13007</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-06-07T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore first three line of my log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64718#M13008</link>
      <description>&lt;P&gt;The inputs.conf file belongs on the forwarder. The props.conf file and the transforms.conf file must go on the indexer (or wherever the data is parsed).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 22:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-first-three-line-of-my-log/m-p/64718#M13008</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-07T22:19:20Z</dc:date>
    </item>
  </channel>
</rss>

