{"action":"opened","number":1437,"pull_request":{"url":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls/1437","id":225204765,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MjA0NzY1","html_url":"https://github.com/openshift/origin-aggregated-logging/pull/1437","diff_url":"https://github.com/openshift/origin-aggregated-logging/pull/1437.diff","patch_url":"https://github.com/openshift/origin-aggregated-logging/pull/1437.patch","issue_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/issues/1437","number":1437,"state":"open","locked":false,"title":"[3.10] Bug 1641166 - Eventrouter creates duplicated events every 30 min with…","user":{"login":"nhosoi","id":938485,"node_id":"MDQ6VXNlcjkzODQ4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/938485?v=4","gravatar_id":"","url":"https://api.github.com/users/nhosoi","html_url":"https://github.com/nhosoi","followers_url":"https://api.github.com/users/nhosoi/followers","following_url":"https://api.github.com/users/nhosoi/following{/other_user}","gists_url":"https://api.github.com/users/nhosoi/gists{/gist_id}","starred_url":"https://api.github.com/users/nhosoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhosoi/subscriptions","organizations_url":"https://api.github.com/users/nhosoi/orgs","repos_url":"https://api.github.com/users/nhosoi/repos","events_url":"https://api.github.com/users/nhosoi/events{/privacy}","received_events_url":"https://api.github.com/users/nhosoi/received_events","type":"User","site_admin":false},"body":"… verb UPDATE\r\n\r\nAdding a plugin filter_elasticsearch_genid_ext.rb, which extends filter_\r\nelasticsearch_genid.rb from fluent-plugin-elasticsearch.  The extended plugin\r\ntakes config parameter alt_key as shown in filter-post-genid.conf.\r\n  <filter **>\r\n    @type elasticsearch_genid_ext\r\n    hash_id_key viaq_msg_id\r\n    alt_key kubernetes.event.metadata.uid\r\n    alt_tags \"#{ENV['GENID_ALT_TAG'] || 'kubernetes.var.log.containers.kube-eventrouter-*.** kubernetes.journal.container._default_.kubernetes.event'}\"\r\n  </filter>\r\nThe plugin does -\r\n  1. If the tag matches the alt_tags list or not,\r\n  2. If it does, it checks the alt_key exists in the record hash as the key.\r\n     As the key is kubernetes.event.metadata.uid, it checks\r\n     record[kubernetes][event][metadata][uid] exists or not.\r\n  3. If it exists, viaq_msg_id is set to the value.\r\n  4. Otherwise, the generated hash value is set. This is the default behaviour.\r\n\r\nNote: the value of kubernetes.event.metadata.uid is shared among the event logs\r\noriginated from the same one event.  By using the value for the elasticsearch\r\nprimary key, duplicated logs are not to be indexed in the elasticsearch.\r\n\r\nFor testing, code to check there is no duplicated value of kubernetes.event.\r\nmetadata.uid is added to test/eventrouter.sh.\r\n\r\nAdditionally, the tag of the event logs via journald used to be\r\n  kubernetes.journal.container._kube-eventrouter_\r\nwhich is changed to\r\n  kubernetes.journal.container._default_.kubernetes.event\r\n\r\n(cherry picked from commit a995992b85ce4fd53e1ea7354ebd95a7dd992174)\r\n\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1641166\r\n\r\nCherry-picked: https://github.com/openshift/origin-aggregated-logging/pull/1424","created_at":"2018-10-23T22:14:59Z","updated_at":"2018-10-23T22:14:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":850882694,"node_id":"MDU6TGFiZWw4NTA4ODI2OTQ=","url":"https://api.github.com/repos/openshift/origin-aggregated-logging/labels/release/3.10","name":"release/3.10","color":"c5def5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls/1437/commits","review_comments_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls/1437/comments","review_comment_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/issues/1437/comments","statuses_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/statuses/5c91ca21fa6115bf08fbbdefb144dd57c33c5167","head":{"label":"nhosoi:release-3.10-eventrouter","ref":"release-3.10-eventrouter","sha":"5c91ca21fa6115bf08fbbdefb144dd57c33c5167","user":{"login":"nhosoi","id":938485,"node_id":"MDQ6VXNlcjkzODQ4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/938485?v=4","gravatar_id":"","url":"https://api.github.com/users/nhosoi","html_url":"https://github.com/nhosoi","followers_url":"https://api.github.com/users/nhosoi/followers","following_url":"https://api.github.com/users/nhosoi/following{/other_user}","gists_url":"https://api.github.com/users/nhosoi/gists{/gist_id}","starred_url":"https://api.github.com/users/nhosoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhosoi/subscriptions","organizations_url":"https://api.github.com/users/nhosoi/orgs","repos_url":"https://api.github.com/users/nhosoi/repos","events_url":"https://api.github.com/users/nhosoi/events{/privacy}","received_events_url":"https://api.github.com/users/nhosoi/received_events","type":"User","site_admin":false},"repo":{"id":64794216,"node_id":"MDEwOlJlcG9zaXRvcnk2NDc5NDIxNg==","name":"origin-aggregated-logging","full_name":"nhosoi/origin-aggregated-logging","private":false,"owner":{"login":"nhosoi","id":938485,"node_id":"MDQ6VXNlcjkzODQ4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/938485?v=4","gravatar_id":"","url":"https://api.github.com/users/nhosoi","html_url":"https://github.com/nhosoi","followers_url":"https://api.github.com/users/nhosoi/followers","following_url":"https://api.github.com/users/nhosoi/following{/other_user}","gists_url":"https://api.github.com/users/nhosoi/gists{/gist_id}","starred_url":"https://api.github.com/users/nhosoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhosoi/subscriptions","organizations_url":"https://api.github.com/users/nhosoi/orgs","repos_url":"https://api.github.com/users/nhosoi/repos","events_url":"https://api.github.com/users/nhosoi/events{/privacy}","received_events_url":"https://api.github.com/users/nhosoi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nhosoi/origin-aggregated-logging","description":null,"fork":true,"url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging","forks_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/forks","keys_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/teams","hooks_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/hooks","issue_events_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/issues/events{/number}","events_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/events","assignees_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/assignees{/user}","branches_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/branches{/branch}","tags_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/tags","blobs_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/statuses/{sha}","languages_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/languages","stargazers_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/stargazers","contributors_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/contributors","subscribers_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/subscribers","subscription_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/subscription","commits_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/contents/{+path}","compare_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/merges","archive_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/downloads","issues_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/issues{/number}","pulls_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/pulls{/number}","milestones_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/milestones{/number}","notifications_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/labels{/name}","releases_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/releases{/id}","deployments_url":"https://api.github.com/repos/nhosoi/origin-aggregated-logging/deployments","created_at":"2016-08-02T21:37:36Z","updated_at":"2016-08-02T21:37:38Z","pushed_at":"2018-10-23T20:00:29Z","git_url":"git://github.com/nhosoi/origin-aggregated-logging.git","ssh_url":"git@github.com:nhosoi/origin-aggregated-logging.git","clone_url":"https://github.com/nhosoi/origin-aggregated-logging.git","svn_url":"https://github.com/nhosoi/origin-aggregated-logging","homepage":null,"size":12899,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift:release-3.10","ref":"release-3.10","sha":"56e4ac44b261a4d5b8c8c2c55f0d114891197dab","user":{"login":"openshift","id":792337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5MjMzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":42467822,"node_id":"MDEwOlJlcG9zaXRvcnk0MjQ2NzgyMg==","name":"origin-aggregated-logging","full_name":"openshift/origin-aggregated-logging","private":false,"owner":{"login":"openshift","id":792337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5MjMzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/792337?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openshift/origin-aggregated-logging","description":null,"fork":false,"url":"https://api.github.com/repos/openshift/origin-aggregated-logging","forks_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/forks","keys_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/teams","hooks_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/hooks","issue_events_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/events","assignees_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/tags","blobs_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/languages","stargazers_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/stargazers","contributors_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/contributors","subscribers_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/subscribers","subscription_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/subscription","commits_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/merges","archive_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/downloads","issues_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/labels{/name}","releases_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/origin-aggregated-logging/deployments","created_at":"2015-09-14T18:14:19Z","updated_at":"2018-10-23T19:17:08Z","pushed_at":"2018-10-23T22:00:28Z","git_url":"git://github.com/openshift/origin-aggregated-logging.git","ssh_url":"git@github.com:openshift/origin-aggregated-logging.git","clone_url":"https://github.com/openshift/origin-aggregated-logging.git","svn_url":"https://github.com/openshift/origin-aggregated-logging","homepage":null,"size":13058,"stargazers_count":75,"watchers_count":75,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":151,"mirror_url":null,"archived":false,"open_issues_count":74,"license":null,"forks":151,"open_issues":74,"watchers":75,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls/1437"},"html":{"href":"https://github.com/openshift/origin-aggregated-logging/pull/1437"},"issue":{"href":"https://api.github.com/repos/openshift/origin-aggregated-logging/issues/1437"},"comments":{"href":"https://api.github.com/repos/openshift/origin-aggregated-logging/issues/1437/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls/1437/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/origin-aggregated-logging/pulls/1437/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/origin-aggregated-logging/statuses/5c91ca21fa6115bf08fbbdefb144dd57c33c5167"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":20,"deletions":7,"changed_files":5}}
{"actor":{"display_login":"nhosoi"}}