<?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 configure props.conf and transforms.conf to ignore the first two lines of an imported log file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200910#M39698</link>
    <description>&lt;P&gt;IGNORE: Also, add &lt;CODE&gt;HEADER_MODE = firstline&lt;/CODE&gt; to treat first line as header (will not get ingested).&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2016 18:22:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-09-19T18:22:06Z</dc:date>
    <item>
      <title>How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200908#M39696</link>
      <description>&lt;P&gt;We have following log file which we need to import in Splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"cdrRecordType","globalCallID_callManagerId","globalCallID_callId","nodeId","directoryNum","callIdentifier","dateTimeStamp","numberPacketsSent","numberOctetsSent","numberPacketsReceived","numberOctetsReceived","numberPacketsLost","jitter","latency","pkid","directoryNumPartition","globalCallId_ClusterID","deviceName","varVQMetrics"
INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(50),INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,UNIQUEIDENTIFIER,VARCHAR(50),VARCHAR(50),VARCHAR(129),VARCHAR(600)
2,15,2768615,15,"10063114030",259142886,1471391005,827,121400,565,87061,0,0,0,"1014e40e-i061-2ii6-6cbb-q3e610140ec0","PART_FAKE_LINE1","FBSNEUC01","CIPCqcwecoe","MLQK=0.0000;MLQKav=0.0000;MLQKmn=0.0000;MLQKmx=0.0000;MLQKvr=null;CCR=0.0000;ICR=0.0000;ICRmx=0.0000;CS=0;SCS=0"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am ignoring Headers using following config:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[collab_cm_cmr_data]
pulldown_type = 1
SHOULD_LINEMERGE = false
INDEXED_EXTRACTIONS = CSV
FIELD_DELIMITER = ,
TRANSFORMS-header_nullq = header_nullq
FIELD_QUOTE = "
NO_BINARY_CHECK = true
category = Cisco CMS Ver. 1
description = An comma delimited output of CM CMR file.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[header_nullq]
DEST_KEY = queue
REGEX = ^TimeStamp
FORMAT = nullqueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Similarly, I want to ignore the second line so I have added following configuration. But it's not working: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-null = discard_row
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[discard_row]
DEST_KEY = queue
REGEX=^INTEGER
FORMAT = nullqueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;SO basically I want to ignore both 1st and 2nd row. Can someone guide me with what is wrong with above config?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:43:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200908#M39696</guid>
      <dc:creator>asaste</dc:creator>
      <dc:date>2016-09-19T17:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200909#M39697</link>
      <description>&lt;P&gt;You spelled &lt;CODE&gt;nullQueue&lt;/CODE&gt; wrong (casing matters).  Fix that and restart and BINGO!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200909#M39697</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-09-19T17:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200910#M39698</link>
      <description>&lt;P&gt;IGNORE: Also, add &lt;CODE&gt;HEADER_MODE = firstline&lt;/CODE&gt; to treat first line as header (will not get ingested).&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200910#M39698</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-19T18:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200911#M39699</link>
      <description>&lt;P&gt;The problem is there is a header on the firstline (indicates field names) and a "typer" as the second line (describing data types).  It is the 2nd "typer" line that needs to be ignored.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200911#M39699</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-09-19T18:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200912#M39700</link>
      <description>&lt;P&gt;Ohh I misread. I take that back.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200912#M39700</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-19T18:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200913#M39701</link>
      <description>&lt;P&gt;HI,&lt;BR /&gt;
I tried this, but No success&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[header_nullq]
DEST_KEY = queue
REGEX = ^TimeStamp
FORMAT = nullQueue

[discard_row]
DEST_KEY = queue
REGEX= ^INTEGER
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:43:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200913#M39701</guid>
      <dc:creator>asaste</dc:creator>
      <dc:date>2016-09-19T18:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200914#M39702</link>
      <description>&lt;P&gt;The question is not really clear.  It looks like you want to use the first line as a csv field name input, and ignore the second line.&lt;BR /&gt;
If that is the case, then you should be able to ignore the second line with props.conf (no entry in transforms required):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
HEADER_FIELD_LIINE_NUMBER = 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is assuming that "INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(50),INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,UNIQUEIDENTIFIER,VARCHAR(50),VARCHAR(50),VARCHAR(129),VARCHAR(600)" is line number 2.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 19:06:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200914#M39702</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2016-09-19T19:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200915#M39703</link>
      <description>&lt;P&gt;It ONLY effects data that comes in AFTER the splunk restart after you updated it.  Once data hits the indexer, it is immutable and will stay in that format forever.  Also, I don't see that &lt;CODE&gt;^TimeStamp&lt;/CODE&gt; will ever match anything (not in your example data, anyway).&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 19:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200915#M39703</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-09-19T19:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200916#M39704</link>
      <description>&lt;P&gt;Sorry if i made confusion while putting my question. Yes, I want to use the first line as a csv field name input, and ignore the second line.&lt;/P&gt;

&lt;P&gt;I tried following 2 options separately as well, but no success&lt;/P&gt;

&lt;P&gt;HEADER_FIELD_LINE_NUMBER = 2&lt;/P&gt;

&lt;P&gt;PREAMBLE_REGEX = ^INTEGER&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200916#M39704</guid>
      <dc:creator>asaste</dc:creator>
      <dc:date>2020-09-29T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200917#M39705</link>
      <description>&lt;P&gt;Yes, after changes I restarted Splunk and modified input file so that it can be again consumed by SPlunk. But that didn't helped.&lt;BR /&gt;
Thanks for pointing out ^TimeStamp &lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 13:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200917#M39705</guid>
      <dc:creator>asaste</dc:creator>
      <dc:date>2016-09-20T13:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200918#M39706</link>
      <description>&lt;P&gt;I found similar problem on another thread , now I am keeping eye on that thread as well&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/209824/how-to-get-splunk-to-ignore-the-second-line-of-a-l.html#comment-452615"&gt;https://answers.splunk.com/answers/209824/how-to-get-splunk-to-ignore-the-second-line-of-a-l.html#comment-452615&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 13:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200918#M39706</guid>
      <dc:creator>asaste</dc:creator>
      <dc:date>2016-09-20T13:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200919#M39707</link>
      <description>&lt;P&gt;I took your 3 lines, made multiple copies of line3 to grow the file, and then tried these configs (no transforms.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputs.conf
[monitor://C:\temp\Splunk\test\ignoreLine2\test.txt]
disabled = 0
index = test
sourcetype = testtype

props.conf
[testtype]
pulldown_type=1
SHOULD_LINEMERGE=false
INDEXED_EXTRACTIONS=CSV
HEADER_FIELD_LINE_NUMBER=2
FIELD_DELIMITER=,
FIELD_QUOTE="
NO_BINARY_CHECK=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first time I tried without HEADER_FIELD_LINE_NUMBER=2 and I did get the line 2 in the test index.&lt;BR /&gt;&lt;BR /&gt;
The second time, I added the HEADER_FIELD_LINE_NUMBER=2 and replaced INTEGER with INTEGER2 and  2,15, with 3,16, so that the input file was changed enough to reindex, and after a Splunk restart did not get INTEGER2 in the index, but did get the events with 3,16.&lt;BR /&gt;
Perhaps you are confusing Splunk with your transforms method of removing line 2.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200919#M39707</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2020-09-29T11:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf and transforms.conf to ignore the first two lines of an imported log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200920#M39708</link>
      <description>&lt;P&gt;Hi, I just test your suggestion, but with your configuration the fields are not present in splunk. Instead of that you will find fields like INTEGER, VARCHAR and so on. So for me is not a working solution. &lt;/P&gt;

&lt;P&gt;Does somebody found another way? &lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 13:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-and-transforms-conf-to-ignore-the/m-p/200920#M39708</guid>
      <dc:creator>krusty</dc:creator>
      <dc:date>2017-02-21T13:01:22Z</dc:date>
    </item>
  </channel>
</rss>

