# Error While Running Logstash - import data to Elastic

**URL:** <https://discuss.elastic.co/t/error-while-running-logstash-import-data-to-elastic/153424>\
**Category:** Logstash\
**Created:** [October 22, 2018, 2:42pm UTC](https://discuss.elastic.co/t/error-while-running-logstash-import-data-to-elastic/153424 "2018-10-22T14:42:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![safarhan](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@safarhan](https://discuss.elastic.co/u/safarhan)\
**Post date:** [October 22, 2018, 2:42pm UTC](https://discuss.elastic.co/t/error-while-running-logstash-import-data-to-elastic/153424/1 "2018-10-22T14:42:51Z")

</div>

Hello,

When I run logstash -f sql.conf to import data from Microsoft SQL Server to Elastic, it gives the following error: Error: Could not find or load main class Driver

I tried just logstash and it gave same error. I have checked the path of java environment its "1.8.0\_181"

---

<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:** [November 19, 2018, 2:51pm UTC](https://discuss.elastic.co/t/error-while-running-logstash-import-data-to-elastic/153424/2 "2018-11-19T14:51:27Z")

</div>

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