# How to use double quotes in logstash exec output

**URL:** <https://discuss.elastic.co/t/how-to-use-double-quotes-in-logstash-exec-output/103174>\
**Category:** Logstash\
**Created:** [October 9, 2017, 5:45am UTC](https://discuss.elastic.co/t/how-to-use-double-quotes-in-logstash-exec-output/103174 "2017-10-09T05:45:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raja\_gopal](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@raja\_gopal](https://discuss.elastic.co/u/raja_gopal)\
**Post date:** [October 9, 2017, 5:45am UTC](https://discuss.elastic.co/t/how-to-use-double-quotes-in-logstash-exec-output/103174/1 "2017-10-09T05:45:12Z")

</div>

I actually want to use bulk delete operations with logstash exec output but how do i place my command as a string inside the config. My command looks like this

```
command => "curl --user es:xxxx -XPOST 'xx.xx.xx.xx:9200/_bulk?pretty' -H 'Content-Type: application/json' -d' { "delete" : { "_index": "s-active, "_type" : "active_alerts", "_id" : "NOTIFICATION" } }\n'"
            }

```

I get an error which says  
:reason=\>"Expected one of #, {, }"

What is the issue ?

---

<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:** [November 6, 2017, 5:45am UTC](https://discuss.elastic.co/t/how-to-use-double-quotes-in-logstash-exec-output/103174/2 "2017-11-06T05:45:47Z")

</div>

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