Hi there,
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?
Yes - correct.
I'm wondering if the problem exists because I removed a previous install with apt.
There seem to be various artefacts remaining which relate to the previous installation - I'd like to nuke everything and get back to a clean install of logstash if I can.
I would be tempted to run the install with 'strace -f -o /tmp/trace.txt ...' and see what errors it is getting when accessing those files under /etc/logstash.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.