How to fetch all records from elasticsearch?

I am working on Log analyzer tool.....Using Angular 6 on front end and node js on back end. By using filebeat tool to parse access logs, I have successfully insert logs in elasticsearch...

Now am getting problem by fetching records from elasticsearch ....Without given size how can i get all records ?? Kindly help

Take a look at search_after or scroll searching in order to efficiently page through your data.

--Alex

Thanks for help.....Can i parse the logs from filebeat and store the data in mongo db ...If you have any idea ??