安装 kibana 、 logstash
kibana
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.5.1-linux-x86_64.tar.gz
tar -xzf kibana-6.5.1-linux-x86_64.tar.gz
mv kibana-6.5.1-linux-x86_64 /guaoran/elk/kibana
vi /guaoran/elk/kibana/config/kibana.yml
kibana.yml
elasticsearch.url: "http://192.168.45.135:9200"
server.host: "192.168.45.135"
启动
/guaoran/elk/kibana/bin/kibana
# 后台启动
nohup /guaoran/elk/kibana/bin/kibana &
访问链接
http://192.168.45.135:5601
logstash
wget https://artifacts.elastic.co/downloads/logstash/logstash-6.5.1.zip
unzip logstash-6.5.1.zip
mv logstash-6.5.1 /guaoran/elk/
启动
修改 配置文件 logstash.yml
http.host: "192.168.45.135"
http.port: "9600"
xpack.monitoring.elasticsearch.url: "http://192.168.45.135:9200"
方式一
/guaoran/elk/logstash-6.5.1/bin/logstash -e 'input { stdin {} } output { stdout {} }'
方式二
vi /guaoran/elk/logstash-6.5.1/config/logstash.conf
输入以下内容
input {
stdin {}
}
output {
stdout {}
}
启动
bin/logstash -f config/logstash.conf
# 后台启动
nohup bin/logstash -f config/logstash.conf >/dev/null &
检测
http://192.168.45.135:5601/app/monitoring
是否出现 logstash