按照这个博客搭建:
https://blog.csdn.net/qrainly/article/details/104726198/?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_title~default-0.highlightwordscore&spm=1001.2101.3001.4242.1
完美展示:
注意点:
1.
进入E:\ELK\logstash-7.6.1\config 新建配置文件logstash.conf 修改内容如下
input {
file {
type => "nginx_access"//elasticsearch
path => "E:/ELK/logs/logstash.log"
}
}
output {
elasticsearch {
hosts => ["127.0.0.1:9200"]
index => "access-%{+YYYY.MM.dd}"
}
stdout {
codec => json_lines
}
2.第一次启动,可能会加载不到log日志,清理下缓存应该会出来。