# Importing CSV data via metricbeat

**URL:** <https://discuss.elastic.co/t/importing-csv-data-via-metricbeat/147913>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 10, 2018, 7:44am UTC](https://discuss.elastic.co/t/importing-csv-data-via-metricbeat/147913 "2018-09-10T07:44:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sribalaji\_dac](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sribalaji\_dac](https://discuss.elastic.co/u/sribalaji_dac)\
**Post date:** [September 10, 2018, 7:44am UTC](https://discuss.elastic.co/t/importing-csv-data-via-metricbeat/147913/1 "2018-09-10T07:44:58Z")

</div>

Is there a way to import CSV output from an api(http) call using metricbeat ?

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [September 10, 2018, 8:20am UTC](https://discuss.elastic.co/t/importing-csv-data-via-metricbeat/147913/2 "2018-09-10T08:20:30Z")

</div>

Hi @sribalaji_dac

I'm afraid that we currently don't have any module supporting this specific case

---

<div class="post-metadata">

**Author:** ![sribalaji\_dac](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sribalaji\_dac](https://discuss.elastic.co/u/sribalaji_dac)\
**Post date:** [September 10, 2018, 10:05am UTC](https://discuss.elastic.co/t/importing-csv-data-via-metricbeat/147913/3 "2018-09-10T10:05:47Z")

</div>

Thanks @Mario_Castro for the reply. is there any workaround to achieve the same ?

I could see some article about using logstash csv filter plugin. But to use that, i need to write a custom code/script which does the expected behavior in the following order (with all the extra/additional hops)

script(api call) -\> csv log \> logstash csvplugin \> logstash \> elasticsearch

To use this approach, we would end up in maintaining the script for failures/cron...

> [@Monitoring LDAP server](https://discuss.elastic.co/t/monitoring-ldap-server/130653/4):
>
> Franco, Either of these methods of indexing is fine. Which is preferable is probably most dependent on personal preference/situational criteria. The method of indexing, though, doesn't really affect the ability to subsequently use queries to extract the information you describe. That's all up to the mapping/document structure you choose. Best, Glen

---

<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:** [October 8, 2018, 10:05am UTC](https://discuss.elastic.co/t/importing-csv-data-via-metricbeat/147913/4 "2018-10-08T10:05:49Z")

</div>

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