# How to run logstash on WSL (Ubuntu 20.04.3 LTS)

**URL:** <https://discuss.elastic.co/t/how-to-run-logstash-on-wsl-ubuntu-20-04-3-lts/289414>\
**Category:** Logstash\
**Created:** [November 17, 2021, 8:47am UTC](https://discuss.elastic.co/t/how-to-run-logstash-on-wsl-ubuntu-20-04-3-lts/289414 "2021-11-17T08:47:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephy\_Jacob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephy_jacob/32/45032_2.png) [@Stephy\_Jacob](https://discuss.elastic.co/u/Stephy_Jacob)\
**Post date:** [November 17, 2021, 8:47am UTC](https://discuss.elastic.co/t/how-to-run-logstash-on-wsl-ubuntu-20-04-3-lts/289414/1 "2021-11-17T08:47:39Z")

</div>

Hi,  
Could you please help with running logstash as a service in WSL (Ubuntu 20.04.3 LTS)  
As of now I get below error message

```auto
sudo systemctl start logstash.service
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

```

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [November 17, 2021, 9:43am UTC](https://discuss.elastic.co/t/how-to-run-logstash-on-wsl-ubuntu-20-04-3-lts/289414/2 "2021-11-17T09:43:39Z")

</div>

Hi,

This is more a WSL than a Logstash problem as WSL does not support systemd yet: [systemctl doesn't work · Issue #1579 · microsoft/WSL · GitHub](https://github.com/Microsoft/WSL/issues/1579)

Though I have not tried it myself, there are projects that might be worth for you to check, for example: [GitHub - arkane-systems/genie: A quick way into a systemd "bottle" for WSL](https://github.com/arkane-systems/genie)

I would be very interested to hear if this works for you.

Best regards  
Wolfram

---

<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 15, 2021, 9:43am UTC](https://discuss.elastic.co/t/how-to-run-logstash-on-wsl-ubuntu-20-04-3-lts/289414/3 "2021-12-15T09:43:59Z")

</div>

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