{"action":"created","issue":{"url":"https://api.github.com/repos/wazuh/wazuh-kibana-app/issues/1022","repository_url":"https://api.github.com/repos/wazuh/wazuh-kibana-app","labels_url":"https://api.github.com/repos/wazuh/wazuh-kibana-app/issues/1022/labels{/name}","comments_url":"https://api.github.com/repos/wazuh/wazuh-kibana-app/issues/1022/comments","events_url":"https://api.github.com/repos/wazuh/wazuh-kibana-app/issues/1022/events","html_url":"https://github.com/wazuh/wazuh-kibana-app/issues/1022","id":380616080,"node_id":"MDU6SXNzdWUzODA2MTYwODA=","number":1022,"title":"Remove agent key from wazuh-monitoring indices","user":{"login":"jesusgn90","id":8860227,"node_id":"MDQ6VXNlcjg4NjAyMjc=","avatar_url":"https://avatars2.githubusercontent.com/u/8860227?v=4","gravatar_id":"","url":"https://api.github.com/users/jesusgn90","html_url":"https://github.com/jesusgn90","followers_url":"https://api.github.com/users/jesusgn90/followers","following_url":"https://api.github.com/users/jesusgn90/following{/other_user}","gists_url":"https://api.github.com/users/jesusgn90/gists{/gist_id}","starred_url":"https://api.github.com/users/jesusgn90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesusgn90/subscriptions","organizations_url":"https://api.github.com/users/jesusgn90/orgs","repos_url":"https://api.github.com/users/jesusgn90/repos","events_url":"https://api.github.com/users/jesusgn90/events{/privacy}","received_events_url":"https://api.github.com/users/jesusgn90/received_events","type":"User","site_admin":false},"labels":[{"id":400053897,"node_id":"MDU6TGFiZWw0MDAwNTM4OTc=","url":"https://api.github.com/repos/wazuh/wazuh-kibana-app/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"jesusgn90","id":8860227,"node_id":"MDQ6VXNlcjg4NjAyMjc=","avatar_url":"https://avatars2.githubusercontent.com/u/8860227?v=4","gravatar_id":"","url":"https://api.github.com/users/jesusgn90","html_url":"https://github.com/jesusgn90","followers_url":"https://api.github.com/users/jesusgn90/followers","following_url":"https://api.github.com/users/jesusgn90/following{/other_user}","gists_url":"https://api.github.com/users/jesusgn90/gists{/gist_id}","starred_url":"https://api.github.com/users/jesusgn90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesusgn90/subscriptions","organizations_url":"https://api.github.com/users/jesusgn90/orgs","repos_url":"https://api.github.com/users/jesusgn90/repos","events_url":"https://api.github.com/users/jesusgn90/events{/privacy}","received_events_url":"https://api.github.com/users/jesusgn90/received_events","type":"User","site_admin":false},"assignees":[{"login":"jesusgn90","id":8860227,"node_id":"MDQ6VXNlcjg4NjAyMjc=","avatar_url":"https://avatars2.githubusercontent.com/u/8860227?v=4","gravatar_id":"","url":"https://api.github.com/users/jesusgn90","html_url":"https://github.com/jesusgn90","followers_url":"https://api.github.com/users/jesusgn90/followers","following_url":"https://api.github.com/users/jesusgn90/following{/other_user}","gists_url":"https://api.github.com/users/jesusgn90/gists{/gist_id}","starred_url":"https://api.github.com/users/jesusgn90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesusgn90/subscriptions","organizations_url":"https://api.github.com/users/jesusgn90/orgs","repos_url":"https://api.github.com/users/jesusgn90/repos","events_url":"https://api.github.com/users/jesusgn90/events{/privacy}","received_events_url":"https://api.github.com/users/jesusgn90/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-14T09:50:03Z","updated_at":"2018-11-14T10:06:13Z","closed_at":"2018-11-14T10:06:13Z","author_association":"MEMBER","body":""},"comment":{"url":"https://api.github.com/repos/wazuh/wazuh-kibana-app/issues/comments/438607459","html_url":"https://github.com/wazuh/wazuh-kibana-app/issues/1022#issuecomment-438607459","issue_url":"https://api.github.com/repos/wazuh/wazuh-kibana-app/issues/1022","id":438607459,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODYwNzQ1OQ==","user":{"login":"jesusgn90","id":8860227,"node_id":"MDQ6VXNlcjg4NjAyMjc=","avatar_url":"https://avatars2.githubusercontent.com/u/8860227?v=4","gravatar_id":"","url":"https://api.github.com/users/jesusgn90","html_url":"https://github.com/jesusgn90","followers_url":"https://api.github.com/users/jesusgn90/followers","following_url":"https://api.github.com/users/jesusgn90/following{/other_user}","gists_url":"https://api.github.com/users/jesusgn90/gists{/gist_id}","starred_url":"https://api.github.com/users/jesusgn90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesusgn90/subscriptions","organizations_url":"https://api.github.com/users/jesusgn90/orgs","repos_url":"https://api.github.com/users/jesusgn90/repos","events_url":"https://api.github.com/users/jesusgn90/events{/privacy}","received_events_url":"https://api.github.com/users/jesusgn90/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T10:06:13Z","updated_at":"2018-11-14T10:06:13Z","author_association":"MEMBER","body":"From 3.7 and onwards, it's being obfuscated on the API side. For older affected version, you can add the next line:\r\n\r\n```js\r\nif(element && element.key) delete element.key;\r\n```\r\nAdd that line just after this one:\r\n\r\nhttps://github.com/wazuh/wazuh-kibana-app/blob/ca0a4bc2fe336e995743fae02f782f3b401b0b15/server/monitoring.js#L384\r\n\r\nThen you must have this:\r\n\r\n```js\r\nfor (let element of agentsArray) { \r\n  if(element && element.key) delete element.key;\r\n  ...\r\n```\r\nNow restart Kibana:\r\n\r\n```\r\nsystemctl restart kibana\r\n```\r\n\r\nHere you go @jesuslinares !\r\n\r\nRegards!"}}
{"actor":{"display_login":"jesusgn90"}}