{"action":"created","comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/comments/46332881","id":46332881,"diff_hunk":"@@ -94,8 +94,12 @@ class LogStash::Outputs::Syslog < LogStash::Outputs::Base\n   # syslog message format: you can choose between rfc3164 or rfc5424\n   config :rfc, :validate => [\"rfc3164\", \"rfc5424\"], :default => \"rfc3164\"\n \n+  # use codec to format message (instead of setting message)\n+  config :usecodec, :validate => :boolean, :default => false","path":"lib/logstash/outputs/syslog.rb","position":5,"original_position":5,"commit_id":"7e53a66184b3afc42b8533206472dfaaa53d0978","original_commit_id":"7e53a66184b3afc42b8533206472dfaaa53d0978","user":{"login":"davidelang","id":2208335,"avatar_url":"https://avatars.githubusercontent.com/u/2208335?v=3","gravatar_id":"","url":"https://api.github.com/users/davidelang","html_url":"https://github.com/davidelang","followers_url":"https://api.github.com/users/davidelang/followers","following_url":"https://api.github.com/users/davidelang/following{/other_user}","gists_url":"https://api.github.com/users/davidelang/gists{/gist_id}","starred_url":"https://api.github.com/users/davidelang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidelang/subscriptions","organizations_url":"https://api.github.com/users/davidelang/orgs","repos_url":"https://api.github.com/users/davidelang/repos","events_url":"https://api.github.com/users/davidelang/events{/privacy}","received_events_url":"https://api.github.com/users/davidelang/received_events","type":"User","site_admin":false},"body":"can you make it so that if the codec is 'plain' it uses message as the format? At that point, it's just fine to have it default to plain.","created_at":"2015-12-01T20:19:09Z","updated_at":"2015-12-01T20:19:09Z","html_url":"https://github.com/logstash-plugins/logstash-output-syslog/pull/17#discussion_r46332881","pull_request_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/comments/46332881"},"html":{"href":"https://github.com/logstash-plugins/logstash-output-syslog/pull/17#discussion_r46332881"},"pull_request":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/17","id":52257825,"html_url":"https://github.com/logstash-plugins/logstash-output-syslog/pull/17","diff_url":"https://github.com/logstash-plugins/logstash-output-syslog/pull/17.diff","patch_url":"https://github.com/logstash-plugins/logstash-output-syslog/pull/17.patch","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/issues/17","number":17,"state":"open","locked":false,"title":"Add possibility to use codec for message part","user":{"login":"breml","id":6205217,"avatar_url":"https://avatars.githubusercontent.com/u/6205217?v=3","gravatar_id":"","url":"https://api.github.com/users/breml","html_url":"https://github.com/breml","followers_url":"https://api.github.com/users/breml/followers","following_url":"https://api.github.com/users/breml/following{/other_user}","gists_url":"https://api.github.com/users/breml/gists{/gist_id}","starred_url":"https://api.github.com/users/breml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breml/subscriptions","organizations_url":"https://api.github.com/users/breml/orgs","repos_url":"https://api.github.com/users/breml/repos","events_url":"https://api.github.com/users/breml/events{/privacy}","received_events_url":"https://api.github.com/users/breml/received_events","type":"User","site_admin":false},"body":"Fixes #9 \r\n\r\n@ManUnix I had the same problem so I wrote this one\r\n@davidelang Maybe you could review this PR and give feedback, if something is missing, since you implemented this feature as well.","created_at":"2015-12-01T13:31:47Z","updated_at":"2015-12-01T20:19:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e7f49adf5958b0fcac19ee9cf73a4ae36989cf2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/17/commits","review_comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/17/comments","review_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/issues/17/comments","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/statuses/7e53a66184b3afc42b8533206472dfaaa53d0978","head":{"label":"u-s-p:feature-codec","ref":"feature-codec","sha":"7e53a66184b3afc42b8533206472dfaaa53d0978","user":{"login":"u-s-p","id":11159887,"avatar_url":"https://avatars.githubusercontent.com/u/11159887?v=3","gravatar_id":"","url":"https://api.github.com/users/u-s-p","html_url":"https://github.com/u-s-p","followers_url":"https://api.github.com/users/u-s-p/followers","following_url":"https://api.github.com/users/u-s-p/following{/other_user}","gists_url":"https://api.github.com/users/u-s-p/gists{/gist_id}","starred_url":"https://api.github.com/users/u-s-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u-s-p/subscriptions","organizations_url":"https://api.github.com/users/u-s-p/orgs","repos_url":"https://api.github.com/users/u-s-p/repos","events_url":"https://api.github.com/users/u-s-p/events{/privacy}","received_events_url":"https://api.github.com/users/u-s-p/received_events","type":"Organization","site_admin":false},"repo":{"id":46345240,"name":"logstash-output-syslog","full_name":"u-s-p/logstash-output-syslog","owner":{"login":"u-s-p","id":11159887,"avatar_url":"https://avatars.githubusercontent.com/u/11159887?v=3","gravatar_id":"","url":"https://api.github.com/users/u-s-p","html_url":"https://github.com/u-s-p","followers_url":"https://api.github.com/users/u-s-p/followers","following_url":"https://api.github.com/users/u-s-p/following{/other_user}","gists_url":"https://api.github.com/users/u-s-p/gists{/gist_id}","starred_url":"https://api.github.com/users/u-s-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u-s-p/subscriptions","organizations_url":"https://api.github.com/users/u-s-p/orgs","repos_url":"https://api.github.com/users/u-s-p/repos","events_url":"https://api.github.com/users/u-s-p/events{/privacy}","received_events_url":"https://api.github.com/users/u-s-p/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/u-s-p/logstash-output-syslog","description":null,"fork":true,"url":"https://api.github.com/repos/u-s-p/logstash-output-syslog","forks_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/forks","keys_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/teams","hooks_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/hooks","issue_events_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/issues/events{/number}","events_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/events","assignees_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/assignees{/user}","branches_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/branches{/branch}","tags_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/tags","blobs_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/git/refs{/sha}","trees_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/statuses/{sha}","languages_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/languages","stargazers_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/stargazers","contributors_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/contributors","subscribers_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/subscribers","subscription_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/subscription","commits_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/commits{/sha}","git_commits_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/git/commits{/sha}","comments_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/comments{/number}","issue_comment_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/issues/comments{/number}","contents_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/contents/{+path}","compare_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/merges","archive_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/downloads","issues_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/issues{/number}","pulls_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/pulls{/number}","milestones_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/milestones{/number}","notifications_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/labels{/name}","releases_url":"https://api.github.com/repos/u-s-p/logstash-output-syslog/releases{/id}","created_at":"2015-11-17T12:19:39Z","updated_at":"2015-11-17T12:19:40Z","pushed_at":"2015-12-01T13:27:25Z","git_url":"git://github.com/u-s-p/logstash-output-syslog.git","ssh_url":"git@github.com:u-s-p/logstash-output-syslog.git","clone_url":"https://github.com/u-s-p/logstash-output-syslog.git","svn_url":"https://github.com/u-s-p/logstash-output-syslog","homepage":null,"size":25,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"logstash-plugins:master","ref":"master","sha":"225305b3177c1606710e744f25a81c9ca0b09a44","user":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":25579219,"name":"logstash-output-syslog","full_name":"logstash-plugins/logstash-output-syslog","owner":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/logstash-plugins/logstash-output-syslog","description":null,"fork":false,"url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog","forks_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/forks","keys_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/teams","hooks_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/hooks","issue_events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/issues/events{/number}","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/events","assignees_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/assignees{/user}","branches_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/branches{/branch}","tags_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/tags","blobs_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/git/refs{/sha}","trees_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/statuses/{sha}","languages_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/languages","stargazers_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/stargazers","contributors_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/contributors","subscribers_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/subscribers","subscription_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/subscription","commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/commits{/sha}","git_commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/git/commits{/sha}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/comments{/number}","issue_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/issues/comments{/number}","contents_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/contents/{+path}","compare_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/merges","archive_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/downloads","issues_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/issues{/number}","pulls_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls{/number}","milestones_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/milestones{/number}","notifications_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/labels{/name}","releases_url":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/releases{/id}","created_at":"2014-10-22T12:03:06Z","updated_at":"2015-11-17T12:19:50Z","pushed_at":"2015-12-01T13:31:47Z","git_url":"git://github.com/logstash-plugins/logstash-output-syslog.git","ssh_url":"git@github.com:logstash-plugins/logstash-output-syslog.git","clone_url":"https://github.com/logstash-plugins/logstash-output-syslog.git","svn_url":"https://github.com/logstash-plugins/logstash-output-syslog","homepage":null,"size":33,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":11,"forks":13,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/17"},"html":{"href":"https://github.com/logstash-plugins/logstash-output-syslog/pull/17"},"issue":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/issues/17"},"comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-syslog/statuses/7e53a66184b3afc42b8533206472dfaaa53d0978"}}}}