<?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: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210592#M22558</link>
    <description>&lt;P&gt;Hey, we managed to work around the issue and got a response from Splunk support as to what is occurring.&lt;/P&gt;

&lt;P&gt;So the issue is that modular inputs are not honouring the CSV sourcetype set it's a bug but I'm not sure on the status with the fix.&lt;/P&gt;

&lt;P&gt;The work around is to pull the file locally and index as any other local CSV.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2018 09:05:06 GMT</pubDate>
    <dc:creator>peter_holmes_an</dc:creator>
    <dc:date>2018-02-06T09:05:06Z</dc:date>
    <item>
      <title>Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210580#M22546</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I am exporting an S3 bucket with only CSV and when I specified the sourcetype as CSV, I have all my events, but no fields about that event (aka the header is like an event). However, when I am importing my CSV in Splunk Web, the header is correctly inserted.&lt;/P&gt;

&lt;P&gt;Any idea about how fix that?&lt;/P&gt;

&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 16:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210580#M22546</guid>
      <dc:creator>menahem</dc:creator>
      <dc:date>2016-04-20T16:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210581#M22547</link>
      <description>&lt;P&gt;Can you post your props config for this input?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 04:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210581#M22547</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2016-04-21T04:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210582#M22548</link>
      <description>&lt;P&gt;my inputs.conf is :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[aws_s3://zx]
aws_account = yx
bucket_name = xy
character_set = auto
ct_blacklist = ^(?:Describe|List|Get)
host_name = s3.amazonaws.com
initial_scan_datetime = 2016-04-10T16:58:20+0200
key_name = devops/
max_items = 100000
max_retries = 3
polling_interval = 60
recursion_depth = -1
sourcetype = csv
ct_excluded_events_index =
index = data
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2016 07:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210582#M22548</guid>
      <dc:creator>menahem</dc:creator>
      <dc:date>2016-04-21T07:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210583#M22549</link>
      <description>&lt;P&gt;Anyone has the same problem ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 09:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210583#M22549</guid>
      <dc:creator>menahem</dc:creator>
      <dc:date>2016-04-22T09:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210584#M22550</link>
      <description>&lt;P&gt;Hi Menaham, I believe this issue will be resolved by creating a props.conf with a [csv] stanza (this input's sourcetype, can be anything you want), and then setting the "INDEXED_EXTRACTIONS = CSV" config at that stanza. More info can be found in the Structured Data section here : &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please let me know if this answers your question!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 13:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210584#M22550</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2016-04-26T13:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210585#M22551</link>
      <description>&lt;P&gt;It's not working, seems to be a bug with the add-on&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210585#M22551</guid>
      <dc:creator>menahem</dc:creator>
      <dc:date>2016-05-03T20:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210586#M22552</link>
      <description>&lt;P&gt;Did you make any progress I am observing the same behaviour.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 04:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210586#M22552</guid>
      <dc:creator>terrencebenade</dc:creator>
      <dc:date>2016-05-24T04:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210587#M22553</link>
      <description>&lt;P&gt;Hello Menahem, I am trying to understand your expectation better. Could you explain further about your meaning behind "no fields about that event (aka the header is like an event)"&lt;/P&gt;

&lt;P&gt;It is my understanding that the header of the file is used for field extractions. It would then be processed as a separate event and the fields that were extracted from the header will appear to the left under "Interesting Fields."&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 06:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210587#M22553</guid>
      <dc:creator>phadnett_splunk</dc:creator>
      <dc:date>2016-05-25T06:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210588#M22554</link>
      <description>&lt;P&gt;Hello Phadnett,&lt;BR /&gt;
The problem is very simple, i don't have the different field's (even in "Interesting Fields") that is in the header of the file&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:08:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210588#M22554</guid>
      <dc:creator>menahem</dc:creator>
      <dc:date>2016-05-25T14:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210589#M22555</link>
      <description>&lt;P&gt;I'm seeing the same issue, and I've done a bunch of testing on it and it seems to be a problem with the AWS app.&lt;/P&gt;

&lt;P&gt;To test I added the AWS app to my dev box (running Splunk as index &amp;amp; search). Setup a test S3 Bucket with a single CSV file in. Used the S3 App to connect to this bucket, with a sourcetype of csv and indexed the data. This produces the following:&lt;BR /&gt;
&lt;STRONG&gt;Event 1:&lt;/STRONG&gt; Header 1,Header 2,Header 3&lt;BR /&gt;
Timestamp of the time of index&lt;BR /&gt;
No non default fields&lt;BR /&gt;
&lt;STRONG&gt;Event 2:&lt;/STRONG&gt; Row1Value1,Row1Value2,Row1Value3&lt;BR /&gt;
Timestamp as the timestamp in the row (the first field of the CSV is a timestamp)&lt;BR /&gt;
No non default fields&lt;BR /&gt;
&lt;STRONG&gt;Event 3:&lt;/STRONG&gt; Row2Value1,Row2Value2,Row2Value3&lt;BR /&gt;
Timestamp as the timestamp in the row&lt;BR /&gt;
No non default fields&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;If I index the same data directly using the Add Data interface and use the csv sourcetype again I get the following:&lt;BR /&gt;
&lt;STRONG&gt;Event 1:&lt;/STRONG&gt; Row1Value1,Row1Value2,Row1Value3&lt;BR /&gt;
Timestamp as the timestamp in the row&lt;BR /&gt;
Fields extracted as per the Header row of the file&lt;BR /&gt;
&lt;STRONG&gt;Event 2:&lt;/STRONG&gt; Row2Value1,Row2Value2,Row2Value3&lt;BR /&gt;
Timestamp as the timestamp in the row&lt;BR /&gt;
Fields extracted as per the Header row of the file&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;In my testing I've used a bunch of props.conf settings but for this last test my props.conf is as follows (which is just the default setting for csv).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ csv ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
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;Out of curiosity I also tried a similar setup to &lt;A href="https://answers.splunk.com/answers/334056"&gt;https://answers.splunk.com/answers/334056&lt;/A&gt; to use props.conf and transforms.conf to remove the header line of the csv so I could use searchtime field extractions to get the fields, but this is also ignored (I didn't test that too thoroughly though so I may have mistyped something).&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 10:00:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210589#M22555</guid>
      <dc:creator>peter_holmes_an</dc:creator>
      <dc:date>2016-07-18T10:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210590#M22556</link>
      <description>&lt;P&gt;I've added some information as a reply to the main question as I'm seeing the same issue but to clarify the problem is that when reading the file from S3 the header is not used for field extraction and is treated as if it were a separate event. So for a file like:&lt;/P&gt;

&lt;P&gt;Header1,Header2,Header3&lt;BR /&gt;
Row1Value1,Row1Value2,Row1Value3&lt;BR /&gt;
Row2Value1,Row2Value2,Row2Value3&lt;/P&gt;

&lt;P&gt;Using AWS S3 you get events like this:&lt;BR /&gt;
&lt;STRONG&gt;Event 1&lt;/STRONG&gt; Header1,Header2,Header3&lt;BR /&gt;
&lt;STRONG&gt;Event 2&lt;/STRONG&gt; Row1Value1,Row1Value2,Row1Value3&lt;BR /&gt;
&lt;STRONG&gt;Event 3&lt;/STRONG&gt; Row2Value1,Row2Value2,Row2Value3&lt;BR /&gt;
And no searchtime field extraction occurs&lt;/P&gt;

&lt;P&gt;but if you add the file locally (just using the Add Data dialogue):&lt;BR /&gt;
&lt;STRONG&gt;Event 1&lt;/STRONG&gt; Row1Value1,Row1Value2,Row1Value3&lt;BR /&gt;
&lt;STRONG&gt;Event 2&lt;/STRONG&gt; Row2Value1,Row2Value2,Row2Value3&lt;BR /&gt;
and the header field is used for field extraction at searchtime.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 10:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210590#M22556</guid>
      <dc:creator>peter_holmes_an</dc:creator>
      <dc:date>2016-07-18T10:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210591#M22557</link>
      <description>&lt;P&gt;Hi, Were you ever able to resolve this issue? I'm having the same problem.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 17:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210591#M22557</guid>
      <dc:creator>marquiselee</dc:creator>
      <dc:date>2018-02-05T17:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the header not parsed correctly?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210592#M22558</link>
      <description>&lt;P&gt;Hey, we managed to work around the issue and got a response from Splunk support as to what is occurring.&lt;/P&gt;

&lt;P&gt;So the issue is that modular inputs are not honouring the CSV sourcetype set it's a bug but I'm not sure on the status with the fix.&lt;/P&gt;

&lt;P&gt;The work around is to pull the file locally and index as any other local CSV.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 09:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/210592#M22558</guid>
      <dc:creator>peter_holmes_an</dc:creator>
      <dc:date>2018-02-06T09:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the heade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/605226#M77163</link>
      <description>&lt;P&gt;Are there any updates on the issue? I recently setup an environment to test ingesting files from an S3 bucket using the SQS-based S3 input and noticed the header of the CSV file was ingested as an event and the remaining actual events didn't have any field extraction applied.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 05:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/605226#M77163</guid>
      <dc:creator>AnotherSplunker</dc:creator>
      <dc:date>2022-07-12T05:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: Exporting an S3 bucket and specifying the sourcetype as CSV, why is the heade</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/607123#M77264</link>
      <description>&lt;P&gt;FYI, Release 6.1.0 of the AWS Add-on that was released on 11th July 2022 resolves this issue:&lt;/P&gt;&lt;P&gt;Release notes for the Splunk Add-on for AWS - Splunk Documentation&lt;BR /&gt;New features&lt;BR /&gt;Version 6.1.0 of the Splunk Add-on for AWS version contains the following new and changed features:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Support for the parsing of CSV files from AWS S3 (Generic S3 and SQS-based S3 ingestion methods)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/AddOns/released/AWS/Releasenotes#New_features" target="_blank"&gt;https://docs.splunk.com/Documentation/AddOns/released/AWS/Releasenotes#New_features&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 06:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-Exporting-an-S3-bucket-and/m-p/607123#M77264</guid>
      <dc:creator>AnotherSplunker</dc:creator>
      <dc:date>2022-07-27T06:17:50Z</dc:date>
    </item>
  </channel>
</rss>

