{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/6328","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/6328/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/6328/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/6328/events","html_url":"https://github.com/elastic/beats/issues/6328","id":295660882,"number":6328,"title":"x-pack beats monitoring is only compatible with Elasticsearch 6.2.0 and up.","user":{"login":"ph","id":640,"avatar_url":"https://avatars0.githubusercontent.com/u/640?v=4","gravatar_id":"","url":"https://api.github.com/users/ph","html_url":"https://github.com/ph","followers_url":"https://api.github.com/users/ph/followers","following_url":"https://api.github.com/users/ph/following{/other_user}","gists_url":"https://api.github.com/users/ph/gists{/gist_id}","starred_url":"https://api.github.com/users/ph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ph/subscriptions","organizations_url":"https://api.github.com/users/ph/orgs","repos_url":"https://api.github.com/users/ph/repos","events_url":"https://api.github.com/users/ph/events{/privacy}","received_events_url":"https://api.github.com/users/ph/received_events","type":"User","site_admin":false},"labels":[{"id":294278853,"url":"https://api.github.com/repos/elastic/beats/labels/libbeat","name":"libbeat","color":"008000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T20:50:44Z","updated_at":"2018-02-08T20:50:44Z","closed_at":null,"author_association":"MEMBER","body":"Currently, when you use a beat with monitoring turn on with a cluster older than Elasticsearch 6.2.0 it will fail with a cryptic message to the user.\r\n\r\n```\r\n2018-02-08T20:40:06.788Z    DEBUG    [monitoring]    elasticsearch/client.go:42    Monitoring client: connect.\r\n2018-02-08T20:40:06.791Z    DEBUG    [monitoring]    elasticsearch/client.go:75    XPack monitoring is enabled\r\n2018-02-08T20:40:06.793Z    ERROR    pipeline/output.go:92    Failed to publish events: 400 Bad Request: {\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"system_api_version [6] is not supported by system_id [beats]\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"system_api_version [6] is not supported by system_id [beats]\"},\"status\":400}\r\n```\r\n\r\nWhen we connect and check the license we should also check if the target Elasticsearch version is supported."}}
{"actor":{"display_login":"ph"}}