I have successfully installed logstash-forwarder on ubuntu 1404, and 1604.
Now the same method failed on ubuntu 1804.
This is the steps I do:
- echo 'deb http://packages.elasticsearch.org/logstashforwarder/debian stable main' | sudo tee /etc/apt/sources.list.d/logstashforwarder.list
- wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
- sudo apt-get update
- sudo service logstash-forwarder restart
On step 3, I got the following error:
Get:11 http://packages.elasticsearch.org/logstashforwarder/debian stable Release.gpg [490 B]
Ign:11 http://packages.elasticsearch.org/logstashforwarder/debian stable Release.gpg
Reading package lists... Done
W: GPG error: http://packages.elasticsearch.org/logstashforwarder/debian stable Release: The following signatures were invalid: 46095ACC8548582C1A2699A9D27D666CD88E42B4
E: The repository 'http://packages.elasticsearch.org/logstashforwarder/debian stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Could someone help? Using the same method, how can I solve this issue on ubuntu 1804.
Thanks a thousand.....