# How to remove additional comma in part of message

**URL:** https://discuss.elastic.co/t/how-to-remove-additional-comma-in-part-of-message/304472
**Category:** Logstash
**Created:** [May 11, 2022, 1:53pm UTC](https://discuss.elastic.co/t/how-to-remove-additional-comma-in-part-of-message/304472 "2022-05-11T13:53:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![royalE](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@royalE](https://discuss.elastic.co/u/royalE)
#### Post date: [May 11, 2022, 1:53pm UTC](https://discuss.elastic.co/t/how-to-remove-additional-comma-in-part-of-message/304472/1 "2022-05-11T13:53:15Z")

</div>

I have string between quotation marks that is separated by comma  
example :"hello ,world"  
logstash separate them in different column which is not the output that I want  
I would like to remove the quotation and remove the comma

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [May 11, 2022, 3:36pm UTC](https://discuss.elastic.co/t/how-to-remove-additional-comma-in-part-of-message/304472/2 "2022-05-11T15:36:38Z")

</div>

> [@royalE](#):
>
> "hello ,world"

If the message will replace " to \ "  
mutate { gsub =\> ["message", '\"|,', ""] }  
or just to remove " and ,  
mutate { gsub =\> ["message", '"|,', ""] }

---

<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 8, 2022, 3:37pm UTC](https://discuss.elastic.co/t/how-to-remove-additional-comma-in-part-of-message/304472/3 "2022-06-08T15:37:25Z")

</div>

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