<?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: Why is Splunk importing header fields from CSV files as events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284604#M54354</link>
    <description>&lt;P&gt;document reference - &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
on this page, search for &lt;BR /&gt;
CHECK_FOR_HEADER = [true|false]&lt;/P&gt;

&lt;P&gt;Try this one in your props.conf also add this line:&lt;/P&gt;

&lt;P&gt;[yoursourcetype]&lt;BR /&gt;
TRANSFORMS-NoHeader = NoHeader&lt;/P&gt;

&lt;P&gt;on your transforms.conf add this:&lt;BR /&gt;
[NoHeader]&lt;BR /&gt;
REGEX = Time, ACTION,ORDER_NO, ...&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:24:20 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2020-09-29T10:24:20Z</dc:date>
    <item>
      <title>Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284603#M54353</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I do a data Input from a folder. The folder contains CSV files. Splunk imports all the data in a correct way, except one thing: Splunk imports the header fields as an event... but why? &lt;BR /&gt;
If I do a table search, the first row is always the same as the header....&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\Folder]
disabled = false
host_segment = 16
index = myindex
sourcetype = csv
whitelist = \.csv$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::D:\Folder\*.csv]
TIME_FORMAT=%y/%m/%d-%H:%M:%S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2016 09:35:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284603#M54353</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-07-27T09:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284604#M54354</link>
      <description>&lt;P&gt;document reference - &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
on this page, search for &lt;BR /&gt;
CHECK_FOR_HEADER = [true|false]&lt;/P&gt;

&lt;P&gt;Try this one in your props.conf also add this line:&lt;/P&gt;

&lt;P&gt;[yoursourcetype]&lt;BR /&gt;
TRANSFORMS-NoHeader = NoHeader&lt;/P&gt;

&lt;P&gt;on your transforms.conf add this:&lt;BR /&gt;
[NoHeader]&lt;BR /&gt;
REGEX = Time, ACTION,ORDER_NO, ...&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:24:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284604#M54354</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T10:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284605#M54355</link>
      <description>&lt;P&gt;This link will contain the information you are after.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.11/Data/Extractfieldsfromfileheadersatindextime" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.11/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;INDEXED_EXTRACTIONS = CSV&lt;BR /&gt;
FIELD_DELIMITER = ,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:24:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284605#M54355</guid>
      <dc:creator>GigaGeek</dc:creator>
      <dc:date>2020-09-29T10:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284606#M54356</link>
      <description>&lt;P&gt;Sorry for my impoliteness, but i am stick of trail and error....&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 10:20:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284606#M54356</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-07-27T10:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284607#M54357</link>
      <description>&lt;P&gt;i am not getting you. by "trial and error", you meant, you already tried this ah?&lt;/P&gt;

&lt;P&gt;the above one is from this post and six guys upvoted that. &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/1041/how-to-ignore-the-titile-line-of-the-csv-file-in-the-result-and-display-in-a-kv-format.html"&gt;https://answers.splunk.com/answers/1041/how-to-ignore-the-titile-line-of-the-csv-file-in-the-result-and-display-in-a-kv-format.html&lt;/A&gt;&lt;BR /&gt;
so, i think this above info is a correct one. &lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 11:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284607#M54357</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-07-27T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284608#M54358</link>
      <description>&lt;P&gt;CHeck_for_header is depricated, but i will try the second part... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284608#M54358</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2020-09-29T10:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284609#M54359</link>
      <description>&lt;P&gt;nope. check_for_header is not deprecated. &lt;BR /&gt;
the latest version 6.4.2 document reference - &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
on this page, search for &lt;BR /&gt;
CHECK_FOR_HEADER = [true|false]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284609#M54359</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T10:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284610#M54360</link>
      <description>&lt;P&gt;OH Sorry,&lt;BR /&gt;
they rode it years ago....&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/releasenotes/Deprecatedfeatures" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/releasenotes/Deprecatedfeatures&lt;/A&gt;&lt;BR /&gt;
CHECK_FOR_HEADER props.conf attribute (for index-time field extractions): This feature is deprecated and might be removed in a future release.&lt;/P&gt;

&lt;P&gt;my fault&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284610#M54360</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2020-09-29T10:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284611#M54361</link>
      <description>&lt;P&gt;Hi @nikkkc&lt;/P&gt;

&lt;P&gt;If @inventsekar's answer solved your question, please don't forget to resolve the post by clicking "Accept" directly below the answer. Also, upvote the Answer or comments that you found helpful. Thanks!&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 21:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284611#M54361</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-07-27T21:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk importing header fields from CSV files as events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284612#M54362</link>
      <description>&lt;P&gt;it work´s with the second part:&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
TIMESTAMP_FIELDS = ActualStartTime&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[NoHeader]&lt;BR /&gt;
REGEX = JobHistoryID,JobID,TaskTypeID&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-importing-header-fields-from-CSV-files-as-events/m-p/284612#M54362</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-07-28T13:46:46Z</dc:date>
    </item>
  </channel>
</rss>

