<?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 edit props.conf to exclude headers in CSV files from getting indexed? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235061#M45788</link>
    <description>&lt;P&gt;I have had no success with the PREAMBLE_REGEX and HEADER_FIELD_LINE_NUMBER clauses... But this solution works: &lt;A href="https://answers.splunk.com/answers/206718/how-to-pull-out-a-header-before-indexing.html" target="_blank"&gt;https://answers.splunk.com/answers/206718/how-to-pull-out-a-header-before-indexing.html&lt;/A&gt; ---It's a workaround, sadly, but until PREAMBLE_REGEX and HEADER_FIELD_LINE_NUMBER are fixed, that's all we have.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:56:22 GMT</pubDate>
    <dc:creator>DUThibault</dc:creator>
    <dc:date>2020-09-29T17:56:22Z</dc:date>
    <item>
      <title>How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235052#M45779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a CSV file with header that is monitored by Splunk. Rows are correctly read, but the headers are also included as an event row. I just want to have the header extracted as the field names (which already works at the same time).&lt;/P&gt;

&lt;P&gt;I tried several ideas using props.conf without any success. I also had a look to the similar questions already asked by other users.&lt;/P&gt;

&lt;P&gt;My last props.conf looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
INDEXED_EXTRACTIONS = csv
HEADER_FIELD_LINE_NUMBER = 1
HEADER_FIELD_DELIMITER = ","
FIELD_DELIMITER = ","
FIELD_HEADER_REGEX = hostname,SCSI logical unit,DeviceID,SCSIBus,SCSIPort,SCSITargetId
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope someone can help sort this out.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;SirHill&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 12:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235052#M45779</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2016-11-22T12:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235053#M45780</link>
      <description>&lt;P&gt;Hi SirHill17,&lt;BR /&gt;
to exclude header from indexing you have to insert in your props.conf the following line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PREAMBLE_REGEX = &amp;lt;regex&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This attribute specifies a regular   expression which allows Splunk to ignore these preamble lines, based on the pattern specified.&lt;BR /&gt;
for other information see &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Propsconf"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 12:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235053#M45780</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-22T12:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235054#M45781</link>
      <description>&lt;P&gt;Just tried adding that to my current props.conf but now it index the entire csv as one event (including the header). &lt;/P&gt;

&lt;P&gt;props.conf is defined at the indexers level (master-node), not at the forwarder level but I don't think it changes anything.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 12:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235054#M45781</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2016-11-22T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235055#M45782</link>
      <description>&lt;P&gt;Try &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELD_HEADER_REGEX=your_regex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 12:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235055#M45782</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-22T12:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235056#M45783</link>
      <description>&lt;P&gt;As per my inital question, I already tried that and everything here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/Data/Extractfieldsfromfileswithstructureddata"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/Data/Extractfieldsfromfileswithstructureddata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 12:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235056#M45783</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2016-11-22T12:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235057#M45784</link>
      <description>&lt;P&gt;If none of the previous options correctly runs, you could filter your header in this way:&lt;BR /&gt;
props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TRANSFORMS-set-remove_headers=set_OK,set_nullqueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_nullqueue]
REGEX=your_header_regex
DEST_KEY=queue
FORMAT=nullQueue

[set_OK]
REGEX=.
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 13:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235057#M45784</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-22T13:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235058#M45785</link>
      <description>&lt;P&gt;Did you deploy this file to your FORWARDER (&lt;EM&gt;not&lt;/EM&gt; your indexers) and did you restart splunkd there?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2017 06:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235058#M45785</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-12T06:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235059#M45786</link>
      <description>&lt;P&gt;Did you tried to insert props.conf in your Forwarder?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2017 09:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235059#M45786</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-03-12T09:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235060#M45787</link>
      <description>&lt;P&gt;YOU MUST DEPLOY THIS ON YOUR FORWARDER.  That is the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235060#M45787</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-13T19:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf to exclude headers in CSV files from getting indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235061#M45788</link>
      <description>&lt;P&gt;I have had no success with the PREAMBLE_REGEX and HEADER_FIELD_LINE_NUMBER clauses... But this solution works: &lt;A href="https://answers.splunk.com/answers/206718/how-to-pull-out-a-header-before-indexing.html" target="_blank"&gt;https://answers.splunk.com/answers/206718/how-to-pull-out-a-header-before-indexing.html&lt;/A&gt; ---It's a workaround, sadly, but until PREAMBLE_REGEX and HEADER_FIELD_LINE_NUMBER are fixed, that's all we have.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-to-exclude-headers-in-CSV-files-from/m-p/235061#M45788</guid>
      <dc:creator>DUThibault</dc:creator>
      <dc:date>2020-09-29T17:56:22Z</dc:date>
    </item>
  </channel>
</rss>

