# Ingesting data from a database, via a API into ES

**URL:** <https://discuss.elastic.co/t/ingesting-data-from-a-database-via-a-api-into-es/136286>\
**Category:** Elasticsearch\
**Created:** [June 18, 2018, 10:19am UTC](https://discuss.elastic.co/t/ingesting-data-from-a-database-via-a-api-into-es/136286 "2018-06-18T10:19:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ioan\_Constantin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ioan_constantin/32/32362_2.png) [@Ioan\_Constantin](https://discuss.elastic.co/u/Ioan_Constantin)\
**Post date:** [June 18, 2018, 10:19am UTC](https://discuss.elastic.co/t/ingesting-data-from-a-database-via-a-api-into-es/136286/1 "2018-06-18T10:19:06Z")

</div>

Hello,

I'm new to ELK and this is my first post here. I'm working with the following scenario:  
-My ELK stack is installed on a VM;  
-I need to ingest data form another machine via an API endpoint.  
-That data is stored in a database (i don't know what kind of database) and the API will provide the data in .json format.

My question is pretty basic, i presume, but i find it difficult to get a straight answer from teh internets:  
-HOW do i ingest said data to my ELK stack, via that API?

Thanks,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 18, 2018, 10:31am UTC](https://discuss.elastic.co/t/ingesting-data-from-a-database-via-a-api-into-es/136286/2 "2018-06-18T10:31:05Z")

</div>

Hard to tell without knowing anything about your source but I'd probably look at Logstash with an HTTP input plugin and an Elasticsearch output plugin.

That's all what I can say for now.

---

<div class="post-metadata">

**Author:** ![Ioan\_Constantin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ioan_constantin/32/32362_2.png) [@Ioan\_Constantin](https://discuss.elastic.co/u/Ioan_Constantin)\
**Post date:** [June 18, 2018, 10:36am UTC](https://discuss.elastic.co/t/ingesting-data-from-a-database-via-a-api-into-es/136286/3 "2018-06-18T10:36:53Z")

</div>

Thanks, i'll look into that - http input plugin and ES output.

We have a machine that collects logs from various network and security devices and stores the log data in a database. This is done by a third party company and i'm not involved in the process.  
This company will provide me with an RestAPI endpoint, the api Key and some parameters i can use in order to get specific output (log type, log level, log date etc.). All i know so far is that the data is supposed to be delivered via the API in JSON format.

I apologize for not being more specific, i'm pretty new at this ELK, Json and Restful Api's stuff but i'm a fast learner.

Thanks for replying 🙂

---

<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:** [July 16, 2018, 10:36am UTC](https://discuss.elastic.co/t/ingesting-data-from-a-database-via-a-api-into-es/136286/4 "2018-07-16T10:36:53Z")

</div>

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