# Starting separate logstash pipeline incorrectly starts Logstash Service

**URL:** <https://discuss.elastic.co/t/starting-separate-logstash-pipeline-incorrectly-starts-logstash-service/281933>\
**Category:** Logstash\
**Created:** [August 19, 2021, 9:19am UTC](https://discuss.elastic.co/t/starting-separate-logstash-pipeline-incorrectly-starts-logstash-service/281933 "2021-08-19T09:19:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris\_ts24](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_ts24/32/79048_2.png) [@chris\_ts24](https://discuss.elastic.co/u/chris_ts24)\
**Post date:** [August 19, 2021, 9:19am UTC](https://discuss.elastic.co/t/starting-separate-logstash-pipeline-incorrectly-starts-logstash-service/281933/1 "2021-08-19T09:19:18Z")

</div>

Hi all,

I've noticed recently that my Logstash service **sometimes** gets started for an unknown reason when I start a separate Logstash pipeline.

The expected behavior is that this single Logstash instance is started and the Logstash service is not started.

The actual behavior is that this single Logstash instance is started AND my Logstash service is also **sometimes** started.

More specifically, when I run the following command from my command line and my Logstash service is stopped, the Logstash instance runs a single time and the service is started:

`/usr/share/logstash/bin/logstash -f /home/apps/logstash/config/create/logstash-ora.conf --path.settings /home/apps/logstash/config/create`

The contents of logstash-ora.conf:

```auto
input {
    jdbc {
         jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
         jdbc_driver_library => "/usr/local/bin/ojdbc8.jar"
         jdbc_connection_string => "jdbc:oracle:thin:@<IP>:<PORT>:<SERVICE>"
         jdbc_user => "<USER>"
         jdbc_password => "<PASS>"
         statement_filepath => "home/apps/logstash/sql/get-all-records.sql"
     }
}

output {
     elasticsearch {
         hosts => ["localhost:9200"]
         index => "myIndex"
         document_type => "_doc"
         document_id => "%{record_id}"
     }
}

```

So, this pipeline is completely separate from the pipelines that I run in the service. Yet, somehow, the service sometimes gets started when I run this pipeline. The service is configured as:

```auto
[Unit]
Description=logstash

[Service]
Type=simple
User=logstash
Group=logstash
EnvironmentFile=-/etc/default/logstash
EnvironmentFile=-/etc/sysconfig/logstash
ExecStart=/usr/share/logstash/bin/logstash "--path.settings=/home/apps/logstash/config"
Restart=always
WorkingDirectory=/
Nice=19
LimitNOFILE=16384

TimeoutStopSec=infinity

[Install]
WantedBy=multi-user.target

```

The only overlap I see is that I call the pipeline using logstash from the same location as the service, but I see no reason why this should indicate to the service to start.

Has anyone noticed a similar issue? Any advice?

Thanks for reading!

---

<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:** [September 16, 2021, 9:19am UTC](https://discuss.elastic.co/t/starting-separate-logstash-pipeline-incorrectly-starts-logstash-service/281933/2 "2021-09-16T09:19:31Z")

</div>

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