How to get data

You may want to look at the docs - https://www.elastic.co/guide/en/logstash/5.1/plugins-inputs-http.html

However I think you actually want https://www.elastic.co/guide/en/logstash/5.1/plugins-inputs-http_poller.html