After This I Have to set ES_PATH_CONF=/etc/elasticsearch in /etc/default/elasticsearch then dpkg finished successfully.
Now when I try to start the service with systemctl start elasticsearch I got the following error: https://pastebin.com/q1Tzu5H6
When I try to start ES manually as elasticsearch user with sudo -i -u elasticsearch /usr/share/elasticsearch/bin/elasticsearch I get the following error: https://pastebin.com/CawfYLWG
I think I have solved my initial issue with setting path.data: and path.logs: to /var/lib/elasticsearch. There is the old Elasticsearch 5.6.12 data stored. I've found the path it with echo $ES_HOME.
For security reasons, Elasticsearch will only read config files from within its config directory. Is /etc/graylog/server/ssl/ a subdirectory of the Elasticsearch config directory?
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.