{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-sns/issues/6","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-sns/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-sns/issues/6/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-sns/issues/6/events","html_url":"https://github.com/logstash-plugins/logstash-output-sns/pull/6","id":89413465,"number":6,"title":"Use codecs","user":{"login":"andrewvc","id":131427,"avatar_url":"https://avatars.githubusercontent.com/u/131427?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewvc","html_url":"https://github.com/andrewvc","followers_url":"https://api.github.com/users/andrewvc/followers","following_url":"https://api.github.com/users/andrewvc/following{/other_user}","gists_url":"https://api.github.com/users/andrewvc/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewvc/subscriptions","organizations_url":"https://api.github.com/users/andrewvc/orgs","repos_url":"https://api.github.com/users/andrewvc/repos","events_url":"https://api.github.com/users/andrewvc/events{/privacy}","received_events_url":"https://api.github.com/users/andrewvc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-18T22:34:34Z","updated_at":"2015-06-19T17:29:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-sns/pulls/6","html_url":"https://github.com/logstash-plugins/logstash-output-sns/pull/6","diff_url":"https://github.com/logstash-plugins/logstash-output-sns/pull/6.diff","patch_url":"https://github.com/logstash-plugins/logstash-output-sns/pull/6.patch"},"body":"WIP. I still need to add tests here. Fixes #3 . It's now in a structure that is amenable to testing however."},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-sns/issues/comments/113582206","html_url":"https://github.com/logstash-plugins/logstash-output-sns/pull/6#issuecomment-113582206","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-output-sns/issues/6","id":113582206,"user":{"login":"andrewvc","id":131427,"avatar_url":"https://avatars.githubusercontent.com/u/131427?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewvc","html_url":"https://github.com/andrewvc","followers_url":"https://api.github.com/users/andrewvc/followers","following_url":"https://api.github.com/users/andrewvc/following{/other_user}","gists_url":"https://api.github.com/users/andrewvc/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewvc/subscriptions","organizations_url":"https://api.github.com/users/andrewvc/orgs","repos_url":"https://api.github.com/users/andrewvc/repos","events_url":"https://api.github.com/users/andrewvc/events{/privacy}","received_events_url":"https://api.github.com/users/andrewvc/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T17:29:42Z","updated_at":"2015-06-19T17:29:42Z","body":"@ph would you be able to take a look at this? This includes a full test suite. It can be manually tested with a logstash config like:\r\n\r\n```\r\ninput {\r\n  generator {\r\n    lines => [\r\n      \"Hello 100\",\r\n      \"test 24.8ms\"\r\n    ]\r\n    count => 1\r\n  }\r\n}\r\n\r\nfilter {\r\n  grok {\r\n    match => [ \"message\", \"test (N/A|%{BASE10NUM:duration:float}ms)\" ]\r\n  }\r\n}\r\n\r\noutput {\r\n  sns {\r\n    arn => \"arn:aws:sns:us-east-1:773216979769:logstash-test-topic\"\r\n    access_key_id => \"AKIAJVZBBFPGVM7KYTAQ\"\r\n    secret_access_key => \"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\"\r\n    codec => rubydebug\r\n    region => \"us-east-1\"\r\n  }\r\n}\r\n```\r\n\r\nor \r\n\r\n```\r\ninput {\r\n  generator {\r\n    lines => [\r\n      \"Hello 100\",\r\n      \"test 24.8ms\"\r\n    ]\r\n    count => 1\r\n  }\r\n}\r\n\r\nfilter {\r\n  mutate {\r\n    add_field => { \"sns_message\" => \"Hey dude!\" }\r\n  }\r\n}\r\n\r\n\r\noutput {\r\n  stdout { codec => rubydebug}\r\n\r\n  sns {\r\n    arn => \"arn:aws:sns:us-east-1:773216979769:logstash-test-topic\"\r\n    access_key_id => \"AKIAJVZBBFPGVM7KYTAQ\"\r\n    secret_access_key => \"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\"\r\n    codec => rubydebug\r\n    region => \"us-east-1\"\r\n  }\r\n}\r\n```"}}