{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/2815","labels_url":"https://api.github.com/repos/elastic/logstash/issues/2815/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/2815/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/2815/events","html_url":"https://github.com/elastic/logstash/issues/2815","id":61037473,"number":2815,"title":"Can't sent message in plugin http in format json","user":{"login":"Marfas1983","id":11457954,"avatar_url":"https://avatars.githubusercontent.com/u/11457954?v=3","gravatar_id":"","url":"https://api.github.com/users/Marfas1983","html_url":"https://github.com/Marfas1983","followers_url":"https://api.github.com/users/Marfas1983/followers","following_url":"https://api.github.com/users/Marfas1983/following{/other_user}","gists_url":"https://api.github.com/users/Marfas1983/gists{/gist_id}","starred_url":"https://api.github.com/users/Marfas1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marfas1983/subscriptions","organizations_url":"https://api.github.com/users/Marfas1983/orgs","repos_url":"https://api.github.com/users/Marfas1983/repos","events_url":"https://api.github.com/users/Marfas1983/events{/privacy}","received_events_url":"https://api.github.com/users/Marfas1983/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-03-13T10:55:48Z","updated_at":"2015-04-09T13:32:38Z","closed_at":null,"body":"I verify in version 1.4.2 of logstash that is not possible to sent message in format json in plugin http, because is not possible put double-quote.\r\nfor resolve this problem i put one WA in code of plugin http.rb that if in message existe the string '\\\"' i replace them to char '\"'. in this form is possible to send message in format json to elasticsearch .\r\n\r\nthe code that i put in plugin is:\r\ncode present:\r\n\r\n    elsif @format == \"message\"\r\n\t#puts msg\r\n        request.body = event.sprintf(@message)\r\n\r\nnew code:\r\n\r\n    elsif @format == \"message\"\r\n\tmatch = '\\\"'\r\n\tmsg=@message\r\n\t\twhile(msg.include?(match))\r\n  \t\t\tmsg.sub!(match, '\"')\r\n\t\tend\r\n\t#puts msg\r\n        request.body = event.sprintf(msg)\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/91232308","html_url":"https://github.com/elastic/logstash/issues/2815#issuecomment-91232308","issue_url":"https://api.github.com/repos/elastic/logstash/issues/2815","id":91232308,"user":{"login":"Marfas1983","id":11457954,"avatar_url":"https://avatars.githubusercontent.com/u/11457954?v=3","gravatar_id":"","url":"https://api.github.com/users/Marfas1983","html_url":"https://github.com/Marfas1983","followers_url":"https://api.github.com/users/Marfas1983/followers","following_url":"https://api.github.com/users/Marfas1983/following{/other_user}","gists_url":"https://api.github.com/users/Marfas1983/gists{/gist_id}","starred_url":"https://api.github.com/users/Marfas1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marfas1983/subscriptions","organizations_url":"https://api.github.com/users/Marfas1983/orgs","repos_url":"https://api.github.com/users/Marfas1983/repos","events_url":"https://api.github.com/users/Marfas1983/events{/privacy}","received_events_url":"https://api.github.com/users/Marfas1983/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T13:32:38Z","updated_at":"2015-04-09T13:32:38Z","body":"thank's for your help, this filter resolve my problem.\r\nanother question:\r\nfor have the difference beetween the date of generation of log \"2015-02-25 00:00:06\" and systimestamp in second's, what filter that i need use?"}}