{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/3239","labels_url":"https://api.github.com/repos/elastic/logstash/issues/3239/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/3239/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/3239/events","html_url":"https://github.com/elastic/logstash/issues/3239","id":75939155,"number":3239,"title":"gsub doesn't like regex expressing single backslash","user":{"login":"nellicus","id":8770097,"avatar_url":"https://avatars.githubusercontent.com/u/8770097?v=3","gravatar_id":"","url":"https://api.github.com/users/nellicus","html_url":"https://github.com/nellicus","followers_url":"https://api.github.com/users/nellicus/followers","following_url":"https://api.github.com/users/nellicus/following{/other_user}","gists_url":"https://api.github.com/users/nellicus/gists{/gist_id}","starred_url":"https://api.github.com/users/nellicus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nellicus/subscriptions","organizations_url":"https://api.github.com/users/nellicus/orgs","repos_url":"https://api.github.com/users/nellicus/repos","events_url":"https://api.github.com/users/nellicus/events{/privacy}","received_events_url":"https://api.github.com/users/nellicus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"purbon","id":68540,"avatar_url":"https://avatars.githubusercontent.com/u/68540?v=3","gravatar_id":"","url":"https://api.github.com/users/purbon","html_url":"https://github.com/purbon","followers_url":"https://api.github.com/users/purbon/followers","following_url":"https://api.github.com/users/purbon/following{/other_user}","gists_url":"https://api.github.com/users/purbon/gists{/gist_id}","starred_url":"https://api.github.com/users/purbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purbon/subscriptions","organizations_url":"https://api.github.com/users/purbon/orgs","repos_url":"https://api.github.com/users/purbon/repos","events_url":"https://api.github.com/users/purbon/events{/privacy}","received_events_url":"https://api.github.com/users/purbon/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-05-13T10:37:40Z","updated_at":"2015-05-18T17:27:22Z","closed_at":"2015-05-18T17:27:22Z","body":"I want to replace a single backslash and using valid regex \"\\\\\\\\\" to do so.\r\n\r\n\r\ngsub doesn't like this\r\n```\r\n./bin/logstash -e 'input{stdin{}}filter{mutate{gsub=>[\"message\",\"\\\\\",\"\"]}}output{stdout{codec=>rubydebug}}'\r\nError: Expected one of #, {, ,, ] at line 1, column 52 (byte 52) after filter{mutate{gsub=>[\"message\",\"\\\\\",\"\r\n```\r\n\r\n\r\nseems like I need to work this bug around with\r\n```\r\n /opt/elk/TEST/logstash-1.5.0-rc3 $ ./bin/logstash -e 'input{stdin{}}filter{mutate{gsub=>[\"message\",\"[\\\\]{1}\",\"____\"]}}output{stdout{codec=>rubydebug}}'\r\nLogstash startup completed\r\n\\\r\n{\r\n       \"message\" => \"____\",\r\n      \"@version\" => \"1\",\r\n    \"@timestamp\" => \"2015-05-13T10:36:20.860Z\",\r\n          \"host\" => \"w530\"\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/103142164","html_url":"https://github.com/elastic/logstash/issues/3239#issuecomment-103142164","issue_url":"https://api.github.com/repos/elastic/logstash/issues/3239","id":103142164,"user":{"login":"purbon","id":68540,"avatar_url":"https://avatars.githubusercontent.com/u/68540?v=3","gravatar_id":"","url":"https://api.github.com/users/purbon","html_url":"https://github.com/purbon","followers_url":"https://api.github.com/users/purbon/followers","following_url":"https://api.github.com/users/purbon/following{/other_user}","gists_url":"https://api.github.com/users/purbon/gists{/gist_id}","starred_url":"https://api.github.com/users/purbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purbon/subscriptions","organizations_url":"https://api.github.com/users/purbon/orgs","repos_url":"https://api.github.com/users/purbon/repos","events_url":"https://api.github.com/users/purbon/events{/privacy}","received_events_url":"https://api.github.com/users/purbon/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T17:27:22Z","updated_at":"2015-05-18T17:27:22Z","body":"This is a known issue already reported at #1645, closing this in favor of him."}}