<?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: Importing CSV file without a header in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482462#M82677</link>
    <description>&lt;P&gt;This REPORT-fields will work on search time. Try to create a temporary index and import the file with those settings and see if it works. I tried on my lab and seems to work fine.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2019 14:29:19 GMT</pubDate>
    <dc:creator>gfreitas</dc:creator>
    <dc:date>2019-11-15T14:29:19Z</dc:date>
    <item>
      <title>Importing CSV file without a header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482458#M82673</link>
      <description>&lt;P&gt;I have a "!" seperated file without a header. I want to import it in Splunk. However Splunk by default takes the first event as the header and all other events below. I want to manually name the fields in the sourcetype. I was wondering if this is possible. &lt;/P&gt;

&lt;P&gt;So far, my sourcetype looks like this: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[ ca_csv ]&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
DELIMS=!&lt;BR /&gt;
FIELDS=a1,a2,a3,a4,a5&lt;BR /&gt;
FIELD_DELIMITER=!&lt;BR /&gt;
category=Custom&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
CHECK_FOR_HEADER=False&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;However, this does not rename the fields as a1,a2,a3,a4,a5. I have 5 fields per event. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample data&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;L01!0112!11493!20191111000012!1149385630101120002012812019111032019111020191110690952404800415;201911&lt;BR /&gt;
L02!0112!11493!20191111000012!0003M00BF000001010020191111000012D823AIB000000bR0FFF0001&lt;BR /&gt;
L03!0112!114938563!20191111000013!0003M0036010001000020191110230005D823O07F L04!0112!114938563!20191111000014!025092664050002011201281201911111000114&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482458#M82673</guid>
      <dc:creator>AnujaJ</dc:creator>
      <dc:date>2020-09-30T02:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV file without a header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482459#M82674</link>
      <description>&lt;P&gt;@AnujaJ will it be possible to add some sample data with couple of rows for the community to assist you better. Please mock/anonymize any sensitive information. Splunk does allow you to provide your own set of comma separated field names instead of using header row.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 15:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482459#M82674</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-11-12T15:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV file without a header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482460#M82675</link>
      <description>&lt;P&gt;I believe you can use transforms.conf for that. See this link: &lt;A href="https://answers.splunk.com/answers/170251/how-to-extract-two-fields-separated-by-delimiter-c.html"&gt;https://answers.splunk.com/answers/170251/how-to-extract-two-fields-separated-by-delimiter-c.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;props.conf would look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ca_csv]
SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
CHARSET=UTF-8
category=Custom
disabled=false
pulldown_type=true
REPORT-fields=csv_fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then on transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[csv_fields]
DELIMS = !
FIELDS = a1,a2,a3,a4,a5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Nov 2019 14:23:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482460#M82675</guid>
      <dc:creator>gfreitas</dc:creator>
      <dc:date>2019-11-13T14:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV file without a header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482461#M82676</link>
      <description>&lt;P&gt;I am uploading the file manually for testing but these settings do not work. Also without FIELD_DELIMITER there is no recognition of different fields. Is it possible to see the effect on manually uploaded file?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 14:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482461#M82676</guid>
      <dc:creator>AnujaJ</dc:creator>
      <dc:date>2019-11-15T14:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV file without a header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482462#M82677</link>
      <description>&lt;P&gt;This REPORT-fields will work on search time. Try to create a temporary index and import the file with those settings and see if it works. I tried on my lab and seems to work fine.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 14:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/482462#M82677</guid>
      <dc:creator>gfreitas</dc:creator>
      <dc:date>2019-11-15T14:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV file without a header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/754811#M119800</link>
      <description>&lt;P&gt;i have the exact same issue, doing a one time import of a simple four row text test CSV file without a header and Splunk insists the top row is the header which it is not, I am a web interface GUI junkie so would love to know how to fix this using the GUI on a Windows platform not Unix not editing any wild text files&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 18:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-CSV-file-without-a-header/m-p/754811#M119800</guid>
      <dc:creator>Gregski11</dc:creator>
      <dc:date>2025-10-27T18:05:27Z</dc:date>
    </item>
  </channel>
</rss>

