# I getting this error while logstash.conf file

**URL:** <https://discuss.elastic.co/t/i-getting-this-error-while-logstash-conf-file/127213>\
**Category:** Logstash\
**Created:** [April 8, 2018, 12:54pm UTC](https://discuss.elastic.co/t/i-getting-this-error-while-logstash-conf-file/127213 "2018-04-08T12:54:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [April 8, 2018, 12:54pm UTC](https://discuss.elastic.co/t/i-getting-this-error-while-logstash-conf-file/127213/1 "2018-04-08T12:54:19Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/b/0/b0effc701e9a01fa488a9e8c324f2de892363c3a.png)

Please help me

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 9, 2018, 6:06am UTC](https://discuss.elastic.co/t/i-getting-this-error-while-logstash-conf-file/127213/2 "2018-04-09T06:06:24Z")

</div>

Please copy/paste text, don't post screenshots.

Logstash can't connect to the database server. Can you connect outside of Logstash but on the same host as Logstash (using e.g. netcat or telnet)?

---

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [April 10, 2018, 5:25am UTC](https://discuss.elastic.co/t/i-getting-this-error-while-logstash-conf-file/127213/3 "2018-04-10T05:25:42Z")

</div>

Hi Magnusbaeck actually I'm trying to import data from sql server to elasticsearch using jdbc plugin so I have created a logstash.conf file and trying to load that file by bin\logstash -f logstash.conf. After trying all scenarios.Now the problem was solved and we are able to import data from sql server.  
Thanks Kartheek

---

<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:** [May 8, 2018, 5:25am UTC](https://discuss.elastic.co/t/i-getting-this-error-while-logstash-conf-file/127213/4 "2018-05-08T05:25:51Z")

</div>

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