# How to run Logstash on Debian?

**URL:** <https://discuss.elastic.co/t/how-to-run-logstash-on-debian/233424>\
**Category:** Logstash\
**Created:** [May 19, 2020, 11:48pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-on-debian/233424 "2020-05-19T23:48:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanradt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wanradt/32/68685_2.png) [@wanradt](https://discuss.elastic.co/u/wanradt)\
**Post date:** [May 19, 2020, 11:48pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-on-debian/233424/1 "2020-05-19T23:48:07Z")

</div>

Hi!

After reading [this blog post](https://www.elastic.co/blog/how-to-keep-elasticsearch-synchronized-with-a-relational-database-using-logstash) I wanted to try out Mysql-Elasticsearch integration and downloaded all listed components and installed them, but did not found out, how should I run Logstash?

For my surprise logstash-7.7.0.deb package:

- does not list any dependencies
- does not include it's own Java (as does Elasticsearch)
- does not include any init-script to run it as service

[Documentation says](https://www.elastic.co/guide/en/logstash/current/running-logstash.html):

> Logstash is not started automatically after installation. How to start and stop Logstash depends on whether your system uses systemd, upstart, or SysV.

And later:

> Logstash places the systemd unit files in /etc/systemd/system for both deb and rpm.

But there is no init-files anywhere. How should I use Logstash to try out the example above? Do I need separate Java for it or could it use the one in Elastisearch tree?

I don't know almost anything about Logstash and I wanted it to install only as link between Elasticsearch and Mysql, but I think it should run as a deamon all the time.

TIA,

Gunnar

---

<div class="post-metadata">

**Author:** ![wanradt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wanradt/32/68685_2.png) [@wanradt](https://discuss.elastic.co/u/wanradt)\
**Post date:** [May 20, 2020, 8:56am UTC](https://discuss.elastic.co/t/how-to-run-logstash-on-debian/233424/2 "2020-05-20T08:56:16Z")

</div>

I removed installed deb:

`sudo apt remove logstash`

and installed from repo [as guided here](https://devconnected.com/how-to-install-logstash-on-ubuntu-18-04-and-debian-9/).

Logstash init-script is added correctly and I can run logstash.

Wbr,

Gunnar

---

<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:** [June 17, 2020, 8:56am UTC](https://discuss.elastic.co/t/how-to-run-logstash-on-debian/233424/3 "2020-06-17T08:56:17Z")

</div>

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