Proper way to escape escape characters

The way the logstash configuration parser works you cannot have a backslash at the end of a quoted string. It escapes the closing quote causing the parser to keep consuming your configuration as if it were part of the string, right up until the next unescaped quote or end of file.

See here for a solution.