无法执行主查询,elasticsearch / Kibana

时间:2016-12-20 23:21:16

标签: elasticsearch logstash kibana centos6

我发现我的图表一直在失败。

我重启了我的服务,它工作了一会然后不再。

查看我的日志,我发现以下异常。

关于我的服务器。

Centos 6 125 RAM 15个核心。

我的kibana使用以下服务。

-logstash -elasticsearch -kibana

在我的日志中,我有以下信息:

[2016-12-20 16:29:17,694][DEBUG][action.search.type       ] [Zeitgeist] [logstash-2016.12.19][0], node[rer0mIPDRPeD7dkjrX9h5A], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@664e869f] lastShard [true]
org.elasticsearch.search.query.QueryPhaseExecutionException: [logstash-2016.12.19][0]: query[filtered((program:httpd) _all:and (syslog_severity:notice))->BooleanFilter(+QueryWrapperFilter(ConstantScore(*:*)) +cache(@timestamp:[1482268665727 TO 1482272265727]))],from[0],size[0]: Query Failed [Failed to execute main query]
    at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:163)
    at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:301)
    at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:312)
    at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)
    at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)
    at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.OutOfMemoryError: Java heap space

问候

1 个答案:

答案 0 :(得分:0)

我有答案, 我删除了那些文件,因为它们已损坏。

ls /var/lib/elasticsearch/elasticsearch/nodes/0/indices
logstash-2016.12.20  
logstash-2016.12.21

您甚至可以删除当天,并重新生成。

然后重启服务

作为参考

SearchPhaseExecutionException[Failed to execute phase [query], all shards failed]