<?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 Newbie Question - CSV with header in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Newbie-Question-CSV-with-header/m-p/66014#M96946</link>
    <description>&lt;P&gt;Hey everyone. First, thanks for helping with all of my newbie questions, I really appreciate it. Right now I am trying to feed .CSV files into splunk. Each csv is set up in the following format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIMESTAMP,HEADERITEM1,...,LASTHEADER
R1TIMESTAMP,R1DATA2,...,R1LASTDATA
R2TIMESTAMP,R2DATA2,...,R2LASTDATA
R3TIMESTAMP,R3DATA2,...,R3LASTDATA
R4TIMESTAMP,R4DATA2,...,R4LASTDATA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am trying to remove or just ignore the header line, but it still keeps getting indexed.
I have set up my props.conf file to look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sip-acl]
REPORT-sipaclparse=sip-acl_parse
TRANSFORMS-null=setnullsip-acl
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the transforms.conf file to look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sip-acl_parse]
DELIMS=","
FIELDS="TIMESTAMP", "HEADERITEM1", ... ,"LASTHEADER"


[setnullsip-acl]
REGEX=TIMESTAMP,HEADERITEM1
DEST_KEY=nullQueue
FORMAT=nullQueue
AT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can anyone tell me what I'm doing wrong? I'd appreciate the help. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2010 21:22:15 GMT</pubDate>
    <dc:creator>msarro</dc:creator>
    <dc:date>2010-10-07T21:22:15Z</dc:date>
    <item>
      <title>Newbie Question - CSV with header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Newbie-Question-CSV-with-header/m-p/66014#M96946</link>
      <description>&lt;P&gt;Hey everyone. First, thanks for helping with all of my newbie questions, I really appreciate it. Right now I am trying to feed .CSV files into splunk. Each csv is set up in the following format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIMESTAMP,HEADERITEM1,...,LASTHEADER
R1TIMESTAMP,R1DATA2,...,R1LASTDATA
R2TIMESTAMP,R2DATA2,...,R2LASTDATA
R3TIMESTAMP,R3DATA2,...,R3LASTDATA
R4TIMESTAMP,R4DATA2,...,R4LASTDATA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am trying to remove or just ignore the header line, but it still keeps getting indexed.
I have set up my props.conf file to look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sip-acl]
REPORT-sipaclparse=sip-acl_parse
TRANSFORMS-null=setnullsip-acl
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the transforms.conf file to look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sip-acl_parse]
DELIMS=","
FIELDS="TIMESTAMP", "HEADERITEM1", ... ,"LASTHEADER"


[setnullsip-acl]
REGEX=TIMESTAMP,HEADERITEM1
DEST_KEY=nullQueue
FORMAT=nullQueue
AT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can anyone tell me what I'm doing wrong? I'd appreciate the help. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 21:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Newbie-Question-CSV-with-header/m-p/66014#M96946</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2010-10-07T21:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - CSV with header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Newbie-Question-CSV-with-header/m-p/66015#M96947</link>
      <description>&lt;P&gt;Looks like your transformer your using to drop the header isn't quite right.  Try this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnullsip-acl]
REGEX = ^TIMESTAMP,HEADERITEM1
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm assuming that your regex is correct.  I recommend using an external regex testing utility for this kind of thing.  I use one all the time and it has saved me from tons of headaches.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 21:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Newbie-Question-CSV-with-header/m-p/66015#M96947</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-10-07T21:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie Question - CSV with header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Newbie-Question-CSV-with-header/m-p/66016#M96948</link>
      <description>&lt;P&gt;That worked perfectly, thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 21:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Newbie-Question-CSV-with-header/m-p/66016#M96948</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2010-10-07T21:46:33Z</dc:date>
    </item>
  </channel>
</rss>

