If you've ever used elasticsearch and needed monitoring and alerting for your cluster without the overhead of running tools in the cluster itself, you'll realize there's not many options. So came up with the idea to separate monitoring and alerting for elasticsearch clusters to create Pulse. Close to launch. https://www.espulse.com/
You could easily do this with Elasticsearch. I've created a search UI(http://www.github.com/romansanchez/calaca) for Elasticsearch, which is what I think you're trying to do. You may want to recreate it on your own for learning purposes.