<?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 file ingestion not respecting column headings in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363712#M66240</link>
    <description>&lt;P&gt;when you will bring the data like mentioned in the docs, the users will not have to create fields at all.&lt;BR /&gt;
pay attention that you have 6 fields in your example but values for only 5 of them.&lt;BR /&gt;
in that case, per docs, splunk will not extract the field with no values.&lt;BR /&gt;
also, some values are strings like: "DatabaseSize" "308.6 GB (331,383,570,432 bytes)" you will probably would want to extract numeric field based on these values, for example:&lt;BR /&gt;
field name: DatabaseSizeGB value 308.6 there are multiple ways to do it. &lt;BR /&gt;
submitting a full answer with screenshot here&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 12:32:48 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-05-05T12:32:48Z</dc:date>
    <item>
      <title>CSV file ingestion not respecting column headings</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363709#M66237</link>
      <description>&lt;P&gt;I'm trying to monitor a CSV file (via a UF) with column headings included in the file.  I want the column headings to be extracted at search time.&lt;/P&gt;

&lt;P&gt;Sample file output:&lt;BR /&gt;
"Name","DatabaseSize","UsedDatabaseSpace","AvailableNewMailboxSpace","NumMailboxes","TotalItemCount"&lt;BR /&gt;
"SFG-DB01","306.9 GB (329,503,997,952 bytes)","257.1 GB (276,068,106,240 bytes)","49.77 GB (53,435,891,712 bytes)","223"&lt;BR /&gt;
"SFG-DB02","350.4 GB (376,212,291,584 bytes)","300.7 GB (322,833,514,496 bytes)","49.71 GB (53,378,777,088 bytes)","362"&lt;BR /&gt;
"SFG-DB03","308.6 GB (331,383,570,432 bytes)","236.1 GB (253,546,692,608 bytes)","72.49 GB (77,836,877,824 bytes)","151"&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;BR /&gt;
[monitor://E:\fileName*.csv]&lt;BR /&gt;
index = test&lt;BR /&gt;
sourcetype = mySourcetypeLog&lt;BR /&gt;
ignoreOlderThan = 24h&lt;BR /&gt;
crcSalt = &lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
[mySourcetypeLog]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
REPORT-getfields = mySourcetypeLog_fields&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[mySourcetypeLog_fields]&lt;BR /&gt;
DELIMS=","&lt;BR /&gt;
FIELDS = "Name","DatabaseSize","UsedDatabaseSpace","AvailableNewMailboxSpace","NumMailboxes","TotalItemCount"&lt;/P&gt;

&lt;P&gt;When I run a oneshot, the data is ingested correctly (one event per log record) but the extracted fields are not showing up.&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363709#M66237</guid>
      <dc:creator>ericlarsen</dc:creator>
      <dc:date>2020-09-29T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file ingestion not respecting column headings</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363710#M66238</link>
      <description>&lt;P&gt;why do you want the column heading extracted at search time?&lt;BR /&gt;
any particular reason?&lt;BR /&gt;
this doc: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Extractfieldsfromfileswithstructureddata"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Extractfieldsfromfileswithstructureddata&lt;/A&gt;&lt;BR /&gt;
explains in detail best practices indexing csv data with nice config samples and data samples to work with&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 01:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363710#M66238</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-05T01:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file ingestion not respecting column headings</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363711#M66239</link>
      <description>&lt;P&gt;I don't want to have the users to create extracted fields for every single field if the field names are already included in the csv file.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 11:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363711#M66239</guid>
      <dc:creator>ericlarsen</dc:creator>
      <dc:date>2017-05-05T11:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file ingestion not respecting column headings</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363712#M66240</link>
      <description>&lt;P&gt;when you will bring the data like mentioned in the docs, the users will not have to create fields at all.&lt;BR /&gt;
pay attention that you have 6 fields in your example but values for only 5 of them.&lt;BR /&gt;
in that case, per docs, splunk will not extract the field with no values.&lt;BR /&gt;
also, some values are strings like: "DatabaseSize" "308.6 GB (331,383,570,432 bytes)" you will probably would want to extract numeric field based on these values, for example:&lt;BR /&gt;
field name: DatabaseSizeGB value 308.6 there are multiple ways to do it. &lt;BR /&gt;
submitting a full answer with screenshot here&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 12:32:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363712#M66240</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-05T12:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file ingestion not respecting column headings</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363713#M66241</link>
      <description>&lt;P&gt;Will recommend follow docs on csv index here:&lt;BR /&gt;
 &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Extractfieldsfromfileswithstructureddata"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Extractfieldsfromfileswithstructureddata&lt;/A&gt;&lt;BR /&gt;
inputs.conf: (like you already have)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\fileName*.csv]
index = test
sourcetype = mySourcetypeLog
ignoreOlderThan = 24h
crcSalt =
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf (on indexer/s)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mySourcetypeLog]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=AUTO
INDEXED_EXTRACTIONS=csv
KV_MODE=none
category=Structured
description=Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled=false
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;screenshots:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2872i2AF42F72AD50D60A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2873i72FF2A6C738AC9D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;you can see on the left hand side of the first screenshot the props.conf &lt;BR /&gt;
on the second screenshot you can see all the fields extracted nicely from header&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 12:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363713#M66241</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-05T12:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file ingestion not respecting column headings</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363714#M66242</link>
      <description>&lt;P&gt;Ignore the sample file.  It's just for illustrative purposes.&lt;/P&gt;

&lt;P&gt;I was able to get it work by setting the sourcetype = csv in inputs.conf.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 12:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363714#M66242</guid>
      <dc:creator>ericlarsen</dc:creator>
      <dc:date>2017-05-05T12:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file ingestion not respecting column headings</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363715#M66243</link>
      <description>&lt;P&gt;great,&lt;BR /&gt;
please mark question as answered and up vote any comments answers that you think helped with resolution&lt;BR /&gt;
have a great weekend&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 12:59:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingestion-not-respecting-column-headings/m-p/363715#M66243</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-05T12:59:42Z</dc:date>
    </item>
  </channel>
</rss>

