Getting kibana logs in my java application

I am pushing multiple logs into Elasticsearch using filebeats and visualising them in kibana. Now, I want to get all these logs into my java application and make a slack bot for monitoring purposes. How can I get all those logs in my java application for monitoring purposes.

You'd need to use the Elasticsearch search APIs, but perhaps you can share a bit more information on what you are trying to achieve.