How to collect data periodically from multiple HTTP endpoints, and indexing the result in Elasticsearch