我正在尝试运行 ELK 以使用 Logstash 解析日志。我成功地将日志解析为 Kibana 索引模式。 但它只工作了一次,我的 ELK 不想再解析日志,我的 Elasticsearch 索引仍然是空的。
这是我的程序:
我的 logstash 配置文件:
input {
file {
path => "/var/log/intranet/authent.log"
type => "log"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "simple-essir-log"
}
}