<?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 csv with headers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/csv-with-headers/m-p/85509#M17772</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a csv file with headers that needs processing. I want to 1) filter out the header and 2) have the fields recognized in the indexer. I tried following the steps listed in this link: &lt;A href="http://splunk-base.splunk.com/answers/41551/how-do-i-get-auto-field-detection-on-forwarded-csv" target="_blank"&gt;http://splunk-base.splunk.com/answers/41551/how-do-i-get-auto-field-detection-on-forwarded-csv&lt;/A&gt; ,but it's not working. &lt;/P&gt;

&lt;P&gt;My csv file:&lt;/P&gt;

&lt;P&gt;"Time","IOPS","Latency(ms)","BW (MBps)"&lt;BR /&gt;
"2013-04-03 22:06:00","9715","3.0","353.0"&lt;BR /&gt;
"2013-04-03 22:07:00","8308","2.0","179.0"&lt;BR /&gt;
"2013-04-03 22:08:00","6436","3.0","244.0"&lt;BR /&gt;
"2013-04-03 22:09:00","4894","4.0","223.0"&lt;BR /&gt;
"2013-04-03 22:10:00","4730","4.0","246.0"&lt;/P&gt;

&lt;P&gt;input.conf:&lt;BR /&gt;
[monitor:///fisc/dasd/xiv/perfstats/*.csv]&lt;BR /&gt;
index=perfstats&lt;BR /&gt;
sourcetype=xiv:perf:arrayStats&lt;BR /&gt;
followTail = 0&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;P&gt;[xiv:perf:arrayStats]&lt;BR /&gt;
CHECK_FOR_HEADER = true&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 30&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:$S&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_PREFIX = ^"&lt;BR /&gt;
TZ = US/Eastern&lt;/P&gt;

&lt;P&gt;TRANSFORMS-xiv:perf:arrayStats = NoHeader&lt;BR /&gt;
TRANSFORMS-xiv:perf:arrayStats = csv-fieldextraction&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[NoHeader]&lt;BR /&gt;
REGEX = "Time","IOPS","Latency(ms)","BW (MBps)"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[csv-fieldextraction]&lt;BR /&gt;
DELIMS=","&lt;BR /&gt;
FIELDS="Time","IOPS","Latency","BW (MBps)"&lt;BR /&gt;
props file:&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:40:48 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2020-09-28T13:40:48Z</dc:date>
    <item>
      <title>csv with headers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/csv-with-headers/m-p/85509#M17772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a csv file with headers that needs processing. I want to 1) filter out the header and 2) have the fields recognized in the indexer. I tried following the steps listed in this link: &lt;A href="http://splunk-base.splunk.com/answers/41551/how-do-i-get-auto-field-detection-on-forwarded-csv" target="_blank"&gt;http://splunk-base.splunk.com/answers/41551/how-do-i-get-auto-field-detection-on-forwarded-csv&lt;/A&gt; ,but it's not working. &lt;/P&gt;

&lt;P&gt;My csv file:&lt;/P&gt;

&lt;P&gt;"Time","IOPS","Latency(ms)","BW (MBps)"&lt;BR /&gt;
"2013-04-03 22:06:00","9715","3.0","353.0"&lt;BR /&gt;
"2013-04-03 22:07:00","8308","2.0","179.0"&lt;BR /&gt;
"2013-04-03 22:08:00","6436","3.0","244.0"&lt;BR /&gt;
"2013-04-03 22:09:00","4894","4.0","223.0"&lt;BR /&gt;
"2013-04-03 22:10:00","4730","4.0","246.0"&lt;/P&gt;

&lt;P&gt;input.conf:&lt;BR /&gt;
[monitor:///fisc/dasd/xiv/perfstats/*.csv]&lt;BR /&gt;
index=perfstats&lt;BR /&gt;
sourcetype=xiv:perf:arrayStats&lt;BR /&gt;
followTail = 0&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;P&gt;[xiv:perf:arrayStats]&lt;BR /&gt;
CHECK_FOR_HEADER = true&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 30&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:$S&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_PREFIX = ^"&lt;BR /&gt;
TZ = US/Eastern&lt;/P&gt;

&lt;P&gt;TRANSFORMS-xiv:perf:arrayStats = NoHeader&lt;BR /&gt;
TRANSFORMS-xiv:perf:arrayStats = csv-fieldextraction&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[NoHeader]&lt;BR /&gt;
REGEX = "Time","IOPS","Latency(ms)","BW (MBps)"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[csv-fieldextraction]&lt;BR /&gt;
DELIMS=","&lt;BR /&gt;
FIELDS="Time","IOPS","Latency","BW (MBps)"&lt;BR /&gt;
props file:&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/csv-with-headers/m-p/85509#M17772</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2020-09-28T13:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: csv with headers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/csv-with-headers/m-p/85510#M17773</link>
      <description>&lt;P&gt;Have you considered bringing this all in, as a single event and then just piping it to multikv at search time?  This will utilize the header as the field name and eliminate the overhead of processing this pre-index.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 19:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/csv-with-headers/m-p/85510#M17773</guid>
      <dc:creator>sbrant_splunk</dc:creator>
      <dc:date>2013-04-05T19:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: csv with headers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/csv-with-headers/m-p/85511#M17774</link>
      <description>&lt;P&gt;Can't be a single event - they are different timestamps associated with performance stats.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 19:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/csv-with-headers/m-p/85511#M17774</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-04-05T19:32:14Z</dc:date>
    </item>
  </channel>
</rss>

