{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/7718","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/7718/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/7718/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/7718/events","html_url":"https://github.com/grafana/grafana/issues/7718","id":211674320,"number":7718,"title":"[Bug] elastic search datasource doesnt use host from url","user":{"login":"devsschmidt","id":11393412,"avatar_url":"https://avatars1.githubusercontent.com/u/11393412?v=3","gravatar_id":"","url":"https://api.github.com/users/devsschmidt","html_url":"https://github.com/devsschmidt","followers_url":"https://api.github.com/users/devsschmidt/followers","following_url":"https://api.github.com/users/devsschmidt/following{/other_user}","gists_url":"https://api.github.com/users/devsschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/devsschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devsschmidt/subscriptions","organizations_url":"https://api.github.com/users/devsschmidt/orgs","repos_url":"https://api.github.com/users/devsschmidt/repos","events_url":"https://api.github.com/users/devsschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/devsschmidt/received_events","type":"User","site_admin":false},"labels":[{"id":70176322,"url":"https://api.github.com/repos/grafana/grafana/labels/type:%20question","name":"type: question","color":"dddddd","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-03T12:22:11Z","updated_at":"2017-03-07T12:22:31Z","closed_at":"2017-03-06T07:30:26Z","body":"Please prefix your title with [Bug] or [Feature request]\r\nFor question please check [Support Options](http://grafana.org/support/). **Do not** open a github issue\r\n\r\nPlease include this information:\r\n- What Grafana version are you using?\r\n`version=4.1.2 commit=v4.1.2 compiled=2017-02-13T13:13:31+0100`\r\n- What datasource are you using?\r\nElastic Search\r\n- What OS are you running grafana on?\r\nDebian Jessie \r\n- What did you do?\r\nAdded an Elastic Search Datasource with a valid URL (works from Shell with curl) and clicked on Save & \r\nTest\r\nmy URL was like http://abc.local:32794 and works just fine\r\n- What was the expected result?\r\nto have Access to elastic search\r\n- What happened instead?\r\nWhen i click on Save & Test Grafana said \r\nERROR\r\n502\r\n\r\nand Grafana log Output is\r\n`t=2017-03-03T13:18:23+0100 lvl=info msg=\"Request Completed\" logger=context userId=2 orgId=2 uname=XXXXXXXXXX method=GET path=/XXXXXXXXX/_stats status=502 remote_addr=127.0.0.1 time_ms=30.002µs size=0`\r\ngrafana doenst use the host i've put in as remote_addr\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/284707132","html_url":"https://github.com/grafana/grafana/issues/7718#issuecomment-284707132","issue_url":"https://api.github.com/repos/grafana/grafana/issues/7718","id":284707132,"user":{"login":"torkelo","id":10999,"avatar_url":"https://avatars0.githubusercontent.com/u/10999?v=3","gravatar_id":"","url":"https://api.github.com/users/torkelo","html_url":"https://github.com/torkelo","followers_url":"https://api.github.com/users/torkelo/followers","following_url":"https://api.github.com/users/torkelo/following{/other_user}","gists_url":"https://api.github.com/users/torkelo/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelo/subscriptions","organizations_url":"https://api.github.com/users/torkelo/orgs","repos_url":"https://api.github.com/users/torkelo/repos","events_url":"https://api.github.com/users/torkelo/events{/privacy}","received_events_url":"https://api.github.com/users/torkelo/received_events","type":"User","site_admin":false},"created_at":"2017-03-07T12:22:31Z","updated_at":"2017-03-07T12:22:31Z","body":"you could run network trace to investigate the traffic between grafana server and http://abc.local:32794 , maybe then you can figure out why it's returning 502 "}}
{"actor":{"display_login":"torkelo"}}