# Run Multiple conf files in Windows Logstash service

**URL:** <https://discuss.elastic.co/t/run-multiple-conf-files-in-windows-logstash-service/207046>\
**Category:** Logstash\
**Created:** [November 8, 2019, 5:08am UTC](https://discuss.elastic.co/t/run-multiple-conf-files-in-windows-logstash-service/207046 "2019-11-08T05:08:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [November 8, 2019, 5:08am UTC](https://discuss.elastic.co/t/run-multiple-conf-files-in-windows-logstash-service/207046/1 "2019-11-08T05:08:24Z")

</div>

Hi ,  
I have installed Logstash 7.1.0 as a service in Windows through NSSM. I haven't provided any Arguments in NSSM.

And In the pipelines.yml, I set different pipelines just by enabling

```auto
- pipeline.id: dataupdate
      path.config: "D:\logstash-7.1.0\logstash-7.1.0\bin\myupdate.conf"
 - pipeline.id: groklogs
      path.config: "D:\logstash-7.1.0\logstash-7.1.0\bin\logs.conf"

```

When I start the service, the conf files don't seem to be running. I assumed that when you give no arguments in NSSM, the pipelines.yml will be directed to the execution.

What I need is to run multiple conf files in my logstash service without having any interruption. If I run in cmd, it'll stop the moment I close cmd, I do not want that. Here's the contents of the config files:

logs.conf:

```auto
input {
  beats {
    port => 5044
  }
}
filter {
    grok {
match => {"message" =>"\[%{TIMESTAMP_ISO8601:timestamp}\]%{SPACE}\[%{DATA:Severity}\]%{SPACE}\[%{DATA:Plugin}\]%{SPACE}\[%{DATA:Servername}\](?<short_message>(.|\r|\n)*)"}
    }
} 
output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "groklogs"
}
          stdout { codec => rubydebug }
}

```

myupdate.conf:

```auto
input {
    jdbc {
        jdbc_connection_string => "jdbc:sqlserver://mydb:1433;databasename=db01;integratedSecurity=true"
        jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
    jdbc_driver_library => "C:\Program Files\sqljdbc_6.2\enu\mssql-jdbc-6.2.2.jre8.jar"
        jdbc_user => nil
        statement => "SELECT * from agedata WHERE updated_on > :sql_last_value ORDER BY updated_on"
    use_column_value =>true
        tracking_column =>updated_on
        tracking_column_type => "timestamp"
    }
}
output {
          elasticsearch { hosts => ["localhost:9200"] 
        index => "thisisit"
        action => update
            document_id => "%{id}"
            doc_as_upsert =>true}
          stdout { codec => rubydebug }
       }

```

Please help me.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 8, 2019, 3:04pm UTC](https://discuss.elastic.co/t/run-multiple-conf-files-in-windows-logstash-service/207046/2 "2019-11-08T15:04:23Z")

</div>

What does logstash log?

---

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [November 13, 2019, 7:21am UTC](https://discuss.elastic.co/t/run-multiple-conf-files-in-windows-logstash-service/207046/3 "2019-11-13T07:21:13Z")

</div>

@Badger I do not see any log on logstash.

---

<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:** [December 11, 2019, 7:21am UTC](https://discuss.elastic.co/t/run-multiple-conf-files-in-windows-logstash-service/207046/4 "2019-12-11T07:21:30Z")

</div>

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