【问题标题】:Unable to load index to elasticsearch using logstash无法使用 logstash 将索引加载到 elasticsearch
【发布时间】: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

标签: elasticsearch logstash


【解决方案1】:

您可以先检查以下内容:

  1. 检查 logstash 日志文件是否有错误。
  2. 运行以下命令:telnet localhost 9200 并验证您可以连接。
  3. 检查 elasticsearch 日志文件是否有错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-20
    • 2016-01-19
    • 1970-01-01
    • 2018-05-21
    • 2016-12-10
    相关资源
    最近更新 更多