# Import data from MSSQL

**URL:** <https://discuss.elastic.co/t/import-data-from-mssql/219974>\
**Category:** Elasticsearch\
**Created:** [February 19, 2020, 1:40pm UTC](https://discuss.elastic.co/t/import-data-from-mssql/219974 "2020-02-19T13:40:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathieu.bauge](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@mathieu.bauge](https://discuss.elastic.co/u/mathieu.bauge)\
**Post date:** [February 19, 2020, 1:40pm UTC](https://discuss.elastic.co/t/import-data-from-mssql/219974/1 "2020-02-19T13:40:55Z")

</div>

Hi everyone,

I am new to ElasticSearch and I struggle to achieve some stuff. Can you please help me, I have this case :

- MSSQL servers,
- a windows server running the servers and logstash continuously,
- ElasticSearch and kibana running on cloud.
- many sensors updating their value in the database (literally UPDATE 2 lines in db)
- Logstash is running continuously using :sql\_last\_value (com.microsoft.sqlserver.jdbc.SQLServerDriver)

Now my question comes more about the architecture. Can you please help me with the non-working cases ?

- I have a lot of one-to-many tables where I can’t use sql\_last\_value.
- I only do updates on sensors values so I can’t have the whole statistic.  
Is there a way to set up a continuous import for those two cases ? Usually what is the best way to continuously import data to ElasticSearch ?  
Has anyone achieved that before ?

Mathieu

---

<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 18, 2020, 1:47pm UTC](https://discuss.elastic.co/t/import-data-from-mssql/219974/2 "2020-03-18T13:47:01Z")

</div>

Closed on March 18, 2020, 1:47pm UTC

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