{"action":"created","comment":{"url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/comments/70807057","id":70807057,"diff_hunk":"@@ -1,34 +1,36 @@\n filter {\n   if \"kubernetes\" and \"docker\" in [tags] {\n-    # check if message looks like json and try to decode it\n-    if [message] =~ /^\\{.*\\}$/ {\n-      json {\n-        source => \"message\"\n-        target => \"message\"\n-        remove_field => [ \"[message][stream]\" ]\n-      }\n+    # A line in the Docker log file might like like this JSON:","path":"conf.d/20_output_kubernetes_elasticsearch.conf","position":10,"original_position":10,"commit_id":"dfda4a4e70fc81e0da32319ba47f67e989291eb1","original_commit_id":"dfda4a4e70fc81e0da32319ba47f67e989291eb1","user":{"login":"vaijab","id":1308018,"avatar_url":"https://avatars.githubusercontent.com/u/1308018?v=3","gravatar_id":"","url":"https://api.github.com/users/vaijab","html_url":"https://github.com/vaijab","followers_url":"https://api.github.com/users/vaijab/followers","following_url":"https://api.github.com/users/vaijab/following{/other_user}","gists_url":"https://api.github.com/users/vaijab/gists{/gist_id}","starred_url":"https://api.github.com/users/vaijab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaijab/subscriptions","organizations_url":"https://api.github.com/users/vaijab/orgs","repos_url":"https://api.github.com/users/vaijab/repos","events_url":"https://api.github.com/users/vaijab/events{/privacy}","received_events_url":"https://api.github.com/users/vaijab/received_events","type":"User","site_admin":false},"body":"Same as above.","created_at":"2016-07-14T13:46:55Z","updated_at":"2016-07-14T13:46:55Z","html_url":"https://github.com/UKHomeOffice/docker-logstash-kubernetes/pull/23#discussion_r70807057","pull_request_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/comments/70807057"},"html":{"href":"https://github.com/UKHomeOffice/docker-logstash-kubernetes/pull/23#discussion_r70807057"},"pull_request":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/23","id":77458390,"html_url":"https://github.com/UKHomeOffice/docker-logstash-kubernetes/pull/23","diff_url":"https://github.com/UKHomeOffice/docker-logstash-kubernetes/pull/23.diff","patch_url":"https://github.com/UKHomeOffice/docker-logstash-kubernetes/pull/23.patch","issue_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/issues/23","number":23,"state":"open","locked":false,"title":"remove redundant regexp JSON check","user":{"login":"toidi","id":892861,"avatar_url":"https://avatars.githubusercontent.com/u/892861?v=3","gravatar_id":"","url":"https://api.github.com/users/toidi","html_url":"https://github.com/toidi","followers_url":"https://api.github.com/users/toidi/followers","following_url":"https://api.github.com/users/toidi/following{/other_user}","gists_url":"https://api.github.com/users/toidi/gists{/gist_id}","starred_url":"https://api.github.com/users/toidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toidi/subscriptions","organizations_url":"https://api.github.com/users/toidi/orgs","repos_url":"https://api.github.com/users/toidi/repos","events_url":"https://api.github.com/users/toidi/events{/privacy}","received_events_url":"https://api.github.com/users/toidi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-14T13:44:43Z","updated_at":"2016-07-14T13:46:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87c8761eae599aea4facc15af3ca45a8531182a3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/23/commits","review_comments_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/23/comments","review_comment_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/issues/23/comments","statuses_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/statuses/dfda4a4e70fc81e0da32319ba47f67e989291eb1","head":{"label":"toidi:remove-redundant-regexp","ref":"remove-redundant-regexp","sha":"dfda4a4e70fc81e0da32319ba47f67e989291eb1","user":{"login":"toidi","id":892861,"avatar_url":"https://avatars.githubusercontent.com/u/892861?v=3","gravatar_id":"","url":"https://api.github.com/users/toidi","html_url":"https://github.com/toidi","followers_url":"https://api.github.com/users/toidi/followers","following_url":"https://api.github.com/users/toidi/following{/other_user}","gists_url":"https://api.github.com/users/toidi/gists{/gist_id}","starred_url":"https://api.github.com/users/toidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toidi/subscriptions","organizations_url":"https://api.github.com/users/toidi/orgs","repos_url":"https://api.github.com/users/toidi/repos","events_url":"https://api.github.com/users/toidi/events{/privacy}","received_events_url":"https://api.github.com/users/toidi/received_events","type":"User","site_admin":false},"repo":{"id":62533781,"name":"docker-logstash-kubernetes","full_name":"toidi/docker-logstash-kubernetes","owner":{"login":"toidi","id":892861,"avatar_url":"https://avatars.githubusercontent.com/u/892861?v=3","gravatar_id":"","url":"https://api.github.com/users/toidi","html_url":"https://github.com/toidi","followers_url":"https://api.github.com/users/toidi/followers","following_url":"https://api.github.com/users/toidi/following{/other_user}","gists_url":"https://api.github.com/users/toidi/gists{/gist_id}","starred_url":"https://api.github.com/users/toidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toidi/subscriptions","organizations_url":"https://api.github.com/users/toidi/orgs","repos_url":"https://api.github.com/users/toidi/repos","events_url":"https://api.github.com/users/toidi/events{/privacy}","received_events_url":"https://api.github.com/users/toidi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toidi/docker-logstash-kubernetes","description":"Logstash container for pulling logs from Kubernetes","fork":true,"url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes","forks_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/forks","keys_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/teams","hooks_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/hooks","issue_events_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/events","assignees_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/tags","blobs_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/languages","stargazers_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/stargazers","contributors_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/contributors","subscribers_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/subscribers","subscription_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/subscription","commits_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/merges","archive_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/downloads","issues_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/toidi/docker-logstash-kubernetes/deployments","created_at":"2016-07-04T05:27:00Z","updated_at":"2016-07-04T05:27:01Z","pushed_at":"2016-07-14T13:43:43Z","git_url":"git://github.com/toidi/docker-logstash-kubernetes.git","ssh_url":"git@github.com:toidi/docker-logstash-kubernetes.git","clone_url":"https://github.com/toidi/docker-logstash-kubernetes.git","svn_url":"https://github.com/toidi/docker-logstash-kubernetes","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"UKHomeOffice:master","ref":"master","sha":"4154c65ee559a24540d2d3f24b01e59f1aa136b2","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":43464485,"name":"docker-logstash-kubernetes","full_name":"UKHomeOffice/docker-logstash-kubernetes","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/docker-logstash-kubernetes","description":"Logstash container for pulling logs from Kubernetes","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes","forks_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/deployments","created_at":"2015-09-30T23:03:23Z","updated_at":"2016-07-01T17:37:32Z","pushed_at":"2016-07-14T13:44:43Z","git_url":"git://github.com/UKHomeOffice/docker-logstash-kubernetes.git","ssh_url":"git@github.com:UKHomeOffice/docker-logstash-kubernetes.git","clone_url":"https://github.com/UKHomeOffice/docker-logstash-kubernetes.git","svn_url":"https://github.com/UKHomeOffice/docker-logstash-kubernetes","homepage":null,"size":20,"stargazers_count":13,"watchers_count":13,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/23"},"html":{"href":"https://github.com/UKHomeOffice/docker-logstash-kubernetes/pull/23"},"issue":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/issues/23"},"comments":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/UKHomeOffice/docker-logstash-kubernetes/statuses/dfda4a4e70fc81e0da32319ba47f67e989291eb1"}}}}
{"actor":{"display_login":"vaijab"}}