# New conf not working even when I specify the config file path

**URL:** <https://discuss.elastic.co/t/new-conf-not-working-even-when-i-specify-the-config-file-path/192392>\
**Category:** Logstash\
**Created:** [July 26, 2019, 8:52am UTC](https://discuss.elastic.co/t/new-conf-not-working-even-when-i-specify-the-config-file-path/192392 "2019-07-26T08:52:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yan\_darcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yan_darcy/32/50994_2.png) [@yan\_darcy](https://discuss.elastic.co/u/yan_darcy)\
**Post date:** [July 26, 2019, 8:52am UTC](https://discuss.elastic.co/t/new-conf-not-working-even-when-i-specify-the-config-file-path/192392/1 "2019-07-26T08:52:07Z")

</div>

Hi, I am trying to using Logstash to import data from MySQL to Elasticsearch. I make a test on my config file, but the output is not from my configure file.

My test command:  
current directory: /home/pwangbo/data/elastic/logstash-6.2.4  
`./bin/logstash -f config/myconf/logstash_test.conf`

My configure file:

```auto
input {
    jdbc {
        jdbc_connection_string => "jdbc:mysql://my mysql uri"
        jdbc_user => "my username"
        jdbc_password => "my password"
        jdbc_driver_library => "/home/pwangbo/elastic/logstash-6.2.4/mysql-connector-java-5.1.44.jar"
        jdbc_driver_class => "com.mysql.jdbc.Driver"
        statement => "SELECT * from didi"
    }
}
output {
    stdout { codec => json_lines }
}

```

My logstash.yml: (only two lines, other lines are comments)

```auto
path.config: /home/pwangbo/data/elastic/logstash-6.2.4/config/myconf/*.conf
queue.type: persisted

```

I want to get data from my database named didi and print result to console, but the output is something from another database. There has someone using logstash before me, I am wondering if I missed something important.

By the way, there is no `/etc/logstash/conf.d/` directory and even `/etc/logstash` on my server. Does that mean I need to create it and my configure file to it?

---

<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:** [August 23, 2019, 8:52am UTC](https://discuss.elastic.co/t/new-conf-not-working-even-when-i-specify-the-config-file-path/192392/2 "2019-08-23T08:52:16Z")

</div>

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