<?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: CSV header extraction limit? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123355#M25463</link>
    <description>&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Extractfieldsfromfileswithstructureddata#Structured_data_files_with_large_numbers_of_columns_might_not_display_all_extracted_fields_in_Splunk_Search"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Extractfieldsfromfileswithstructureddata#Structured_data_files_with_large_numbers_of_columns_might_not_display_all_extracted_fields_in_Splunk_Search&lt;/A&gt; for the right answer.&lt;/P&gt;

&lt;P&gt;Specificaly: &lt;CODE&gt;props.conf&lt;/CODE&gt; wants to have &lt;CODE&gt;[kv]&lt;/CODE&gt;'s  &lt;CODE&gt;limit = &amp;lt;max_cols&amp;gt;&lt;/CODE&gt; set to something big. We're using 1000.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 10:20:12 GMT</pubDate>
    <dc:creator>bhawkins1</dc:creator>
    <dc:date>2017-02-24T10:20:12Z</dc:date>
    <item>
      <title>CSV header extraction limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123350#M25458</link>
      <description>&lt;P&gt;I am trying to on-board a new data source to Splunk. It is a CSV file with 350 headers records. I setup an inputs and a props for the file.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
DATETIME_CONFIG = CURRENT&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
pulldown_type = 1&lt;BR /&gt;
TRUNCATE = 10000000&lt;/P&gt;

&lt;P&gt;The extraction of the headers into fields works partially. I only get the first 30 fields/headers. How can I get all the headers to extract?&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123350#M25458</guid>
      <dc:creator>ebailey</dc:creator>
      <dc:date>2020-09-28T18:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: CSV header extraction limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123351#M25459</link>
      <description>&lt;P&gt;Have you tried passing them to a transforms.conf and listing the fields?&lt;/P&gt;

&lt;P&gt;It will be a pain, but you'll only have to do it once and it should work!&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
all your stuff
TRANSFORMS-new = testtransforms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;tranforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[testtransforms]
DELIMS = ","
FIELDS = "field1", "field2", "field3" etc...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Might wanna cut/paste!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 20:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123351#M25459</guid>
      <dc:creator>kendrickt</dc:creator>
      <dc:date>2015-01-30T20:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: CSV header extraction limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123352#M25460</link>
      <description>&lt;P&gt;That is what I was guessing I needed to do. Too bad the default csv sourcetype does not work. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 15:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123352#M25460</guid>
      <dc:creator>ebailey</dc:creator>
      <dc:date>2015-02-02T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: CSV header extraction limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123353#M25461</link>
      <description>&lt;P&gt;I made the change&lt;/P&gt;

&lt;P&gt;props&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
DATETIME_CONFIG = CURRENT&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
pulldown_type = 1&lt;BR /&gt;
TRUNCATE = 10000000&lt;BR /&gt;
TRANSFORMS-new = testtransforms&lt;/P&gt;

&lt;P&gt;transforms&lt;/P&gt;

&lt;P&gt;[testtransforms]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DELIMS = ","&lt;BR /&gt;
FIELDS = "long list of values"&lt;/P&gt;

&lt;P&gt;I am not getting the expected results. I only see the fields I saw before I manually defined the layout. Is the format correct?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123353#M25461</guid>
      <dc:creator>ebailey</dc:creator>
      <dc:date>2020-09-28T18:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: CSV header extraction limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123354#M25462</link>
      <description>&lt;P&gt;I don't know what impact the &lt;CODE&gt;REGEX&lt;/CODE&gt; field will have, but it shouldn't be required.&lt;/P&gt;

&lt;P&gt;Here's a copy of a transforms.conf I use everyday&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xxx]
DELIMS=","
FIELDS="xxx1","xxx2","xxx3"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would probably set &lt;CODE&gt;TRUNCATE=0&lt;/CODE&gt; too, but only if you're sure there'll be no garbage in the file.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 16:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123354#M25462</guid>
      <dc:creator>kendrickt</dc:creator>
      <dc:date>2015-02-04T16:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: CSV header extraction limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123355#M25463</link>
      <description>&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Extractfieldsfromfileswithstructureddata#Structured_data_files_with_large_numbers_of_columns_might_not_display_all_extracted_fields_in_Splunk_Search"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Extractfieldsfromfileswithstructureddata#Structured_data_files_with_large_numbers_of_columns_might_not_display_all_extracted_fields_in_Splunk_Search&lt;/A&gt; for the right answer.&lt;/P&gt;

&lt;P&gt;Specificaly: &lt;CODE&gt;props.conf&lt;/CODE&gt; wants to have &lt;CODE&gt;[kv]&lt;/CODE&gt;'s  &lt;CODE&gt;limit = &amp;lt;max_cols&amp;gt;&lt;/CODE&gt; set to something big. We're using 1000.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 10:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-header-extraction-limit/m-p/123355#M25463</guid>
      <dc:creator>bhawkins1</dc:creator>
      <dc:date>2017-02-24T10:20:12Z</dc:date>
    </item>
  </channel>
</rss>

