Gsub replace backslash with forward slash

Hi, you need a very tricky substitution :astonished: :grinning:

The only way of achieving it that comes to my mind is to use ruby code directly:

  ruby{
    code => ' event.set("message", event.get("message").gsub("/", "\\") ) '
  }

Be aware that if your output representation escapes special characters (for example Json), you'll see "doubled" backquotes in the result.

I add a link to a message with a related issue to have as reference and another unresolved one that might benefit from this.