{"action":"opened","number":6604,"pull_request":{"url":"https://api.github.com/repos/elastic/beats/pulls/6604","id":176237307,"html_url":"https://github.com/elastic/beats/pull/6604","diff_url":"https://github.com/elastic/beats/pull/6604.diff","patch_url":"https://github.com/elastic/beats/pull/6604.patch","issue_url":"https://api.github.com/repos/elastic/beats/issues/6604","number":6604,"state":"open","locked":false,"title":"Load ML using Kibana API","user":{"login":"kvch","id":3876218,"avatar_url":"https://avatars1.githubusercontent.com/u/3876218?v=4","gravatar_id":"","url":"https://api.github.com/users/kvch","html_url":"https://github.com/kvch","followers_url":"https://api.github.com/users/kvch/followers","following_url":"https://api.github.com/users/kvch/following{/other_user}","gists_url":"https://api.github.com/users/kvch/gists{/gist_id}","starred_url":"https://api.github.com/users/kvch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvch/subscriptions","organizations_url":"https://api.github.com/users/kvch/orgs","repos_url":"https://api.github.com/users/kvch/repos","events_url":"https://api.github.com/users/kvch/events{/privacy}","received_events_url":"https://api.github.com/users/kvch/received_events","type":"User","site_admin":false},"body":"Since Kibana 6.1 new ML API is available to load jobs, datafeeds, etc. Thus, it's not necessary to store ML configs in Beats and load them using `setup`.\r\nFrom now on if Filebeat connects to a Kibana 6.1 or newer the Kibana API is called. If Kibana is older than 6.1, Filebeat loads the ML config from the repo, as it's done in previous versions.\r\n\r\nSetting up ML for nginx:\r\n```\r\n./filebeat setup --machine-learning -modules=nginx\r\n```\r\n\r\nOne limitation is introduced. Modules must be specified when running setup. Meaning `./filebeat setup --machine-learning` fails. It would be nice to have an Kibana API call which lists all available modules. Or I can hard-code it into the code, but that's quite ugly.\r\n@tsg WDYT?","created_at":"2018-03-20T15:53:49Z","updated_at":"2018-03-20T15:53:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":294278645,"url":"https://api.github.com/repos/elastic/beats/labels/Filebeat","name":"Filebeat","color":"008000","default":false},{"id":216798909,"url":"https://api.github.com/repos/elastic/beats/labels/in%20progress","name":"in progress","color":"207de5","default":false},{"id":228068770,"url":"https://api.github.com/repos/elastic/beats/labels/review","name":"review","color":"207de5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/beats/pulls/6604/commits","review_comments_url":"https://api.github.com/repos/elastic/beats/pulls/6604/comments","review_comment_url":"https://api.github.com/repos/elastic/beats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/beats/issues/6604/comments","statuses_url":"https://api.github.com/repos/elastic/beats/statuses/da1d79443094661fc78699c850c24cb3b7cca2db","head":{"label":"kvch:feature/filebeat/setup-ml-using-kibana","ref":"feature/filebeat/setup-ml-using-kibana","sha":"da1d79443094661fc78699c850c24cb3b7cca2db","user":{"login":"kvch","id":3876218,"avatar_url":"https://avatars1.githubusercontent.com/u/3876218?v=4","gravatar_id":"","url":"https://api.github.com/users/kvch","html_url":"https://github.com/kvch","followers_url":"https://api.github.com/users/kvch/followers","following_url":"https://api.github.com/users/kvch/following{/other_user}","gists_url":"https://api.github.com/users/kvch/gists{/gist_id}","starred_url":"https://api.github.com/users/kvch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvch/subscriptions","organizations_url":"https://api.github.com/users/kvch/orgs","repos_url":"https://api.github.com/users/kvch/repos","events_url":"https://api.github.com/users/kvch/events{/privacy}","received_events_url":"https://api.github.com/users/kvch/received_events","type":"User","site_admin":false},"repo":{"id":98179304,"name":"beats","full_name":"kvch/beats","owner":{"login":"kvch","id":3876218,"avatar_url":"https://avatars1.githubusercontent.com/u/3876218?v=4","gravatar_id":"","url":"https://api.github.com/users/kvch","html_url":"https://github.com/kvch","followers_url":"https://api.github.com/users/kvch/followers","following_url":"https://api.github.com/users/kvch/following{/other_user}","gists_url":"https://api.github.com/users/kvch/gists{/gist_id}","starred_url":"https://api.github.com/users/kvch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvch/subscriptions","organizations_url":"https://api.github.com/users/kvch/orgs","repos_url":"https://api.github.com/users/kvch/repos","events_url":"https://api.github.com/users/kvch/events{/privacy}","received_events_url":"https://api.github.com/users/kvch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kvch/beats","description":":tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash ","fork":true,"url":"https://api.github.com/repos/kvch/beats","forks_url":"https://api.github.com/repos/kvch/beats/forks","keys_url":"https://api.github.com/repos/kvch/beats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kvch/beats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kvch/beats/teams","hooks_url":"https://api.github.com/repos/kvch/beats/hooks","issue_events_url":"https://api.github.com/repos/kvch/beats/issues/events{/number}","events_url":"https://api.github.com/repos/kvch/beats/events","assignees_url":"https://api.github.com/repos/kvch/beats/assignees{/user}","branches_url":"https://api.github.com/repos/kvch/beats/branches{/branch}","tags_url":"https://api.github.com/repos/kvch/beats/tags","blobs_url":"https://api.github.com/repos/kvch/beats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kvch/beats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kvch/beats/git/refs{/sha}","trees_url":"https://api.github.com/repos/kvch/beats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kvch/beats/statuses/{sha}","languages_url":"https://api.github.com/repos/kvch/beats/languages","stargazers_url":"https://api.github.com/repos/kvch/beats/stargazers","contributors_url":"https://api.github.com/repos/kvch/beats/contributors","subscribers_url":"https://api.github.com/repos/kvch/beats/subscribers","subscription_url":"https://api.github.com/repos/kvch/beats/subscription","commits_url":"https://api.github.com/repos/kvch/beats/commits{/sha}","git_commits_url":"https://api.github.com/repos/kvch/beats/git/commits{/sha}","comments_url":"https://api.github.com/repos/kvch/beats/comments{/number}","issue_comment_url":"https://api.github.com/repos/kvch/beats/issues/comments{/number}","contents_url":"https://api.github.com/repos/kvch/beats/contents/{+path}","compare_url":"https://api.github.com/repos/kvch/beats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kvch/beats/merges","archive_url":"https://api.github.com/repos/kvch/beats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kvch/beats/downloads","issues_url":"https://api.github.com/repos/kvch/beats/issues{/number}","pulls_url":"https://api.github.com/repos/kvch/beats/pulls{/number}","milestones_url":"https://api.github.com/repos/kvch/beats/milestones{/number}","notifications_url":"https://api.github.com/repos/kvch/beats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kvch/beats/labels{/name}","releases_url":"https://api.github.com/repos/kvch/beats/releases{/id}","deployments_url":"https://api.github.com/repos/kvch/beats/deployments","created_at":"2017-07-24T10:34:44Z","updated_at":"2018-03-19T11:31:06Z","pushed_at":"2018-03-20T15:34:21Z","git_url":"git://github.com/kvch/beats.git","ssh_url":"git@github.com:kvch/beats.git","clone_url":"https://github.com/kvch/beats.git","svn_url":"https://github.com/kvch/beats","homepage":"https://www.elastic.co/products/beats","size":74928,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"768e58ede27f7a80b38c983a83537f8669a0cb04","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":16554739,"name":"beats","full_name":"elastic/beats","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/beats","description":":tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash ","fork":false,"url":"https://api.github.com/repos/elastic/beats","forks_url":"https://api.github.com/repos/elastic/beats/forks","keys_url":"https://api.github.com/repos/elastic/beats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/beats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/beats/teams","hooks_url":"https://api.github.com/repos/elastic/beats/hooks","issue_events_url":"https://api.github.com/repos/elastic/beats/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/beats/events","assignees_url":"https://api.github.com/repos/elastic/beats/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/beats/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/beats/tags","blobs_url":"https://api.github.com/repos/elastic/beats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/beats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/beats/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/beats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/beats/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/beats/languages","stargazers_url":"https://api.github.com/repos/elastic/beats/stargazers","contributors_url":"https://api.github.com/repos/elastic/beats/contributors","subscribers_url":"https://api.github.com/repos/elastic/beats/subscribers","subscription_url":"https://api.github.com/repos/elastic/beats/subscription","commits_url":"https://api.github.com/repos/elastic/beats/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/beats/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/beats/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/beats/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/beats/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/beats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/beats/merges","archive_url":"https://api.github.com/repos/elastic/beats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/beats/downloads","issues_url":"https://api.github.com/repos/elastic/beats/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/beats/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/beats/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/beats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/beats/labels{/name}","releases_url":"https://api.github.com/repos/elastic/beats/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/beats/deployments","created_at":"2014-02-05T19:01:02Z","updated_at":"2018-03-20T13:52:59Z","pushed_at":"2018-03-20T14:59:32Z","git_url":"git://github.com/elastic/beats.git","ssh_url":"git@github.com:elastic/beats.git","clone_url":"https://github.com/elastic/beats.git","svn_url":"https://github.com/elastic/beats","homepage":"https://www.elastic.co/products/beats","size":75823,"stargazers_count":5346,"watchers_count":5346,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1535,"mirror_url":null,"archived":false,"open_issues_count":727,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1535,"open_issues":727,"watchers":5346,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/beats/pulls/6604"},"html":{"href":"https://github.com/elastic/beats/pull/6604"},"issue":{"href":"https://api.github.com/repos/elastic/beats/issues/6604"},"comments":{"href":"https://api.github.com/repos/elastic/beats/issues/6604/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/beats/pulls/6604/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/beats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/beats/pulls/6604/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/beats/statuses/da1d79443094661fc78699c850c24cb3b7cca2db"}},"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":187,"deletions":12,"changed_files":5}}
{"actor":{"display_login":"kvch"}}