# CSV Filter - Quote character causing \_csvparsefailure

**URL:** https://discuss.elastic.co/t/csv-filter-quote-character-causing-csvparsefailure/121273
**Category:** Logstash
**Created:** [February 23, 2018, 7:01pm UTC](https://discuss.elastic.co/t/csv-filter-quote-character-causing-csvparsefailure/121273 "2018-02-23T19:01:53Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![TechGeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/techgeek/32/28158_2.png) [@TechGeek](https://discuss.elastic.co/u/TechGeek)
#### Post date: [February 25, 2018, 1:49pm UTC](https://discuss.elastic.co/t/csv-filter-quote-character-causing-csvparsefailure/121273/3 "2018-02-25T13:49:12Z")

</div>

@Makra

Curious to know where we place, this code. Reason of asking this question is:-  
If we place the code in filter section after mentioning the column(refer my below my logstash.config), it throws an error.

Can we place it before column field ? if yes, please share the sample.

> [@Makra](#):
>
> mutate {  
> gsub =\> ["message", """, " "]  
> }

Piece of my logstash.config file  
filter{

```
   csv {
 	separator => ","
#	skip_empty_columns => true
	columns => ["Month", "Quarter", "Year", "INCIDENT_ID" , "RESOLUTION", "SUMMARY"]
    }
	mutate {convert => ["Month", "integer"]}
	mutate {convert => ["Quarter", "integer"]}
  	mutate {convert => ["Year", "integer"]}
  	mutate {gsub => ["RESOLUTION", "['"\\]","0"]
	mutate {gsub => ["SUMMARY", "['"\\]","0"]
}

```

---

_[View the full topic](https://discuss.elastic.co/t/csv-filter-quote-character-causing-csvparsefailure/121273)._
