Save metricbeat data locally preferably in csv

Is it possible to save the metricbeat data locally preferably in csv format ? We are experiencing intermittent connectivity problems between metricbeat and logstash and loosing the data when this happens so we would like to save the metricbeat data locally as a backup.

Found that I can save it in file in json format, however when I set multiple outputs the metricbeat fails with "Exiting: error unpacking config data: more than one namespace configured accessing 'output'"

output.elasticsearch:
hosts: ["ip:port"]

output.file:
path: "/tmp/metricbeat"
filename: metricbeat

Hi @rsgupta0110

Today metricbeat (all beats) only write to one output. To do want you want you could send the beats data to Logstash and send to multiple outputs, Logstash supports multiple outputs.