How to use double quotes in logstash exec output

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 ?

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