# How to remove double quotes from Field

**URL:** <https://discuss.elastic.co/t/how-to-remove-double-quotes-from-field/115046>\
**Category:** Logstash\
**Created:** [January 11, 2018, 9:30am UTC](https://discuss.elastic.co/t/how-to-remove-double-quotes-from-field/115046 "2018-01-11T09:30:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saket\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Saket\_Kumar](https://discuss.elastic.co/u/Saket_Kumar)\
**Post date:** [January 11, 2018, 9:30am UTC](https://discuss.elastic.co/t/how-to-remove-double-quotes-from-field/115046/1 "2018-01-11T09:30:41Z")

</div>

I am parsing a CSV which has a column field name and values within double quotes.

I have to rename the field such as:  
mutate {rename =\> { '"ttfb\_ms"' =\> "Time\_to\_First\_Byte\_(ms)" }}

And also have to remove double quotes from the column values.

"123" to 123

Is there any ways?

---

<div class="post-metadata">

**Author:** ![Saket\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Saket\_Kumar](https://discuss.elastic.co/u/Saket_Kumar)\
**Post date:** [January 11, 2018, 10:31am UTC](https://discuss.elastic.co/t/how-to-remove-double-quotes-from-field/115046/2 "2018-01-11T10:31:06Z")

</div>

i got the way to do....  
Field rename:  
`mutate {rename => { '"ttfb_ms"' => "Time_to_First_Byte_(ms)" }}`

removal of double quotes from column value:  
`mutate { gsub => ["Time_to_First_Byte_(ms)","\"",""]}`

---

<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:** [February 8, 2018, 10:31am UTC](https://discuss.elastic.co/t/how-to-remove-double-quotes-from-field/115046/3 "2018-02-08T10:31:14Z")

</div>

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