brew install elasticsearch // 安装
brew info elasticsearch // 查看信息
brew services start elasticsearch // 启动
brew install kibana
brew info kibana
brew services start kibana
brew install logstash
brew info logstash
brew services start logstash
vim log.conf
input {
file {
path => ["/Users/zhaohao/code/code/espier-bloated/storage/logs/lumen-2021-03-21.log"]
}
}
output {
elasticsearch{
hosts => ["http://localhost:9200"]
index => "lumen-log"
}
}
logstash -f log.conf