Just tried re-installing logstash having removed it on an ubuntu server and had the following errors:
Get:1 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 logstash all 1:7.9.1-1 [159 MB] Fetched 159 MB in 35s (4,555 kB/s) Selecting previously unselected package logstash. (Reading database ... 198511 files and directories currently installed.) Preparing to unpack .../logstash_1%3a7.9.1-1_all.deb ... Unpacking logstash (1:7.9.1-1) ... Setting up logstash (1:7.9.1-1) ... sed: can't read /etc/logstash/logstash.yml: No such file or directory /etc/logstash/startup.options is not a file path To manually specify a startup style, put the path to startup.options as the first argument, followed by the startup style (sysv, upstart, systemd) chmod: cannot access '/etc/logstash/startup.options': No such file or directory
Then when trying to start logstash, the service is not found.
Is this due to me manually removng things after removing it?
If so, how can I repair or fix things?
What's the best way to get back to a completly vanilla install?