# Save metricbeat data locally preferably in csv

**URL:** https://discuss.elastic.co/t/save-metricbeat-data-locally-preferably-in-csv/264206
**Category:** Beats
**Tags:** metricbeat
**Created:** [February 13, 2021, 10:15am UTC](https://discuss.elastic.co/t/save-metricbeat-data-locally-preferably-in-csv/264206 "2021-02-13T10:15:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rsgupta0110](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@rsgupta0110](https://discuss.elastic.co/u/rsgupta0110)
#### Post date: [February 13, 2021, 10:15am UTC](https://discuss.elastic.co/t/save-metricbeat-data-locally-preferably-in-csv/264206/1 "2021-02-13T10:15:49Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![rsgupta0110](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@rsgupta0110](https://discuss.elastic.co/u/rsgupta0110)
#### Post date: [February 13, 2021, 12:44pm UTC](https://discuss.elastic.co/t/save-metricbeat-data-locally-preferably-in-csv/264206/2 "2021-02-13T12:44:17Z")

</div>

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

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [February 13, 2021, 3:22pm UTC](https://discuss.elastic.co/t/save-metricbeat-data-locally-preferably-in-csv/264206/3 "2021-02-13T15:22:34Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 13, 2021, 5:23pm UTC](https://discuss.elastic.co/t/save-metricbeat-data-locally-preferably-in-csv/264206/4 "2021-03-13T17:23:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
