Ubuntu 安装logstash

安装apt-key

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

可能需要安装https库

sudo apt-get install apt-transport-https

保存源

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

更新并安装

sudo apt-get update && sudo apt-get install logstash

注册服务

sudo systemctl start logstash.service

查看运行状态

service logstash status

参考:官方文档

你可能感兴趣的:(Elasticsearch,Ubuntu,logstash,ubuntu,linux)