我是新来的麋鹿。实际上,我已经在ubuntu 14.04上安装了Logstash,elasticsearch和kibana。当我尝试使用我的ubuntu上的现有日志文件测试ELK时,logstash不会将日志加载到elasticsearch中并且不显示任何内容。这是我logstash配置文件:须藤gedit中/etc/logstash/conf.d/logstash.conf input {
麋鹿Elasticsearch logstash配置
file {
path => "/home/chayma/logs/catalina.2016-02-02.log"
start_position => "beginning"
}
}
filter {
grok {
match => { "message" => "%{COMMONAPACHELOG}" }
}
}
output {
elasticsearch {
hosts => [ "127.0.0.1:9200" ]
}
stdout
{
codec => rubydebug
}
}
但是,我elasticsearch.yml包含:
cluster.name: my-application
node.name: node-1
node.master: true
node.data: true
index.number_of_shards: 1
index.number_of_replicas: 0
network.host: localhost
http.port: 9200
请帮