How to run logstash on WSL (Ubuntu 20.04.3 LTS)

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

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

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

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

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

Best regards
Wolfram

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