Help with formatting a logstash output exec using curl

You need to use the right markup for your post. You currently have

Indent the 'command =>' etc with 4 spaces. It will then appear as

and the escapes, asterisks, underscores et al will be preserved.