gpt4 book ai didi

java - 搜索单词时,logstash 抛出 org.elasticsearch.action.search.SearchPhaseExecutionException

转载 作者:行者123 更新时间:2023-12-01 15:22:14 26 4
gpt4 key购买 nike

logstash 无法按单词搜索。异常(exception):

查询“* @timestamp:[2012-05-17 TO 2012-05-26]”导致以下错误:org.elasticsearch.action.search.SearchPhaseExecutionException:无法执行阶段[初始],没有要搜索的索引/分片,请求的索引是[]

logstash.conf

input{
file{
type => "system_log"
path => "D:\\application\\logstash\\logs\\*"
}
}
output{
null{}
}

logstash 部署在 Windows 7 中

最佳答案

原因是elasticsearch无法加载日志文件。

logstash.conf 更改为

input{
file{
type => "system_log"
path => "D:\\application\\logstash\\logs\\*"
}
}
output{
elasticsearch { embedded => true }
}

关于java - 搜索单词时,logstash 抛出 org.elasticsearch.action.search.SearchPhaseExecutionException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10735694/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com