【发布时间】:2015-01-01 18:46:05
【问题描述】:
我无法使用 logstash 将索引加载到 elasticsearch。以下是我的 logstash.conf 设置。对我来说配置设置似乎很好。如果我遗漏了什么,请帮忙。
假设 Logstash 和弹性搜索服务运行良好。
input {
file {
type => "IISLog"
path => "C:/inetpub/logs/LogFiles/W3SVC1/u_ex140930.log"
start_postition => "beginning"
}
}
output {
stdout { debug => true debug_format => "ruby"}
elasticsearch_http {
host => "localhost"
port => 9200
protocol => "http"
index => "iislogs2"
}
}
【问题讨论】:
-
你在标准输出上得到了什么吗? Logstash 日志中有什么有趣的东西吗?如果您使用
--verbose甚至--debug启动Logstash 会怎样? -
我不会“假设 [一切] 运行良好。有很多移动部件!这是诊断 ELK 问题的指南:svops.com/blog/?p=26