ELK 6.2.2

Logstash 6.2.2啓動
1、進入安裝目錄
cd /opt/logstash-6.2.2

2、新建first.conf
input {
beats {
port => “5044”
}
}

filter {
grok {
match => { “message” => “%{COMBINEDAPACHELOG}” }
}
geoip {
source => “172.16.10.67”
}
}

output {
elasticsearch {
hosts => [ “172.16.10.141:9200” ]
}
}

3、後臺啓動
./logstash -f …/first.conf

Filebeat 6.2.2啓動
1、進入安裝目錄
/opt/filebeat-6.2.2/

2、修改filebeat.yml

paths:
- /usr/local/nginx/logs/.log
- /data/test/logs/peersfer/
.log

output.logstash:
hosts: [“172.16.10.201:5044”]

3、後臺啓動
nohup ./filebeat -c filebeat.yml &

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章