Exporting CSV from Logstash with node.js

Hello Everyone,

I am new to Elasticsearch and Logstash. I am using Elasticsearch to save orders data. Now, I need to export the CSV report from Elasticsearch into my frontend application which is built using angular. I tried to use Logstash for the same but I am only being able to download CSV on the drive using logstash-output-csv.

Is there a way to fetch the CSV from Logstash in my frontend app or Backend node.js app?