Grafana +grayog

i am following the answer by @ [Zerobot]
using elasticsearch as data source
to connect to my graylog i have using its public ip address and port and access type browser
and on index i am using *
and when i save my grafana datasource the testing message appears for some time and then disappear and when i creat a panel from that datasource i am getting 404 not found
and i don;t know what i am doing wrong help please
and i am running grafana on my local host and graylog is running somewhere else