How to store metricbeat data in local disk

Does the file spools queue works?

I have same concern, Metricbeat fail safe/over function on output.

But got an error during implementation