# Error while reading CSV file from Amazon s3

**URL:** <https://discuss.elastic.co/t/error-while-reading-csv-file-from-amazon-s3/86502>\
**Category:** Logstash\
**Created:** [May 20, 2017, 12:16am UTC](https://discuss.elastic.co/t/error-while-reading-csv-file-from-amazon-s3/86502 "2017-05-20T00:16:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asharma](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@asharma](https://discuss.elastic.co/u/asharma)\
**Post date:** [May 20, 2017, 12:16am UTC](https://discuss.elastic.co/t/error-while-reading-csv-file-from-amazon-s3/86502/1 "2017-05-20T00:16:32Z")

</div>

my configuration file looks something like this :

input{  
s3{  
bucket =\> “s3://bucketaddress/tranlogfull.csv000”  
access\_key\_id =\> “**_”  
secret\_access\_key =\> “_**”  
region =\> “us-west-2”

```
}

```

}

filter {  
csv {  
columns =\> ["ID","Date","Open","High","Low","Close","Volume (BTC)","Volume (Currency)","Weighted Price"]  
separator =\> ","  
}  
}

output {  
stdout { codec =\> rubydebug }  
elasticsearch {  
action =\> "index"  
hosts =\> ["localhost:9200"]  
index =\> "csv\_index"  
document\_type =\> "bitcoin\_info"  
id =\> "ID"  
}  
}

and I am getting the following error while running the configuration :  
Cannot create pipeline {:reason=\>"Expected one of #, ", ', -, [, { at line 4, column 13 (byte 26) after \ninput{\n\ts3{\n\t\tbucket =\> "}

Any help appreciated 🙂

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 20, 2017, 10:20pm UTC](https://discuss.elastic.co/t/error-while-reading-csv-file-from-amazon-s3/86502/2 "2017-05-20T22:20:10Z")

</div>

It looks like you have a mix of different quote characters -`"`. I'd check them.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 17, 2017, 10:20pm UTC](https://discuss.elastic.co/t/error-while-reading-csv-file-from-amazon-s3/86502/3 "2017-06-17T22:20:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
