Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 无法在Windows 7上的Kibana安装中获取映射_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Logstash_Windows 7 X64_Kibana - Fatal编程技术网 elasticsearch 无法在Windows 7上的Kibana安装中获取映射,elasticsearch,logstash,windows-7-x64,kibana,elasticsearch,Logstash,Windows 7 X64,Kibana" /> elasticsearch 无法在Windows 7上的Kibana安装中获取映射,elasticsearch,logstash,windows-7-x64,kibana,elasticsearch,Logstash,Windows 7 X64,Kibana" />

elasticsearch 无法在Windows 7上的Kibana安装中获取映射

elasticsearch 无法在Windows 7上的Kibana安装中获取映射,elasticsearch,logstash,windows-7-x64,kibana,elasticsearch,Logstash,Windows 7 X64,Kibana,我按照步骤在Windows7机器上安装了Logstash、Elastic Search和Kibana,每件事看起来都很好。我可以将日志发送到LogStash,并将它们转发到Elastic Search。我加载了前两个数据集,如中所述。我还可以查看索引 yellow open accounts 5 1 1000 0 417kb 417kb yellow open logstash-2015.10.25 5 1 377 0 1005kb 1005kb yell

我按照步骤在Windows7机器上安装了Logstash、Elastic Search和Kibana,每件事看起来都很好。我可以将日志发送到LogStash,并将它们转发到Elastic Search。我加载了前两个数据集,如中所述。我还可以查看索引

yellow open accounts            5 1   1000 0  417kb  417kb 
yellow open logstash-2015.10.25 5 1    377 0 1005kb 1005kb 
yellow open .kibana             1 1      1 0  2.4kb  2.4kb 
yellow open logstash-2015.10.14 5 1      0 0   575b   575b 
yellow open shakespeare         5 1 111396 0 17.9mb 17.9mb
然而,Kibana在第一步就被卡住了,无论我使用什么索引模式,它总是显示出来

Unable to fetch mapping. Do you have indices matching the pattern?
Chrome和Firefox中的开发者控制台显示相同的错误消息

Failed to load resource: the server responded with a status of 400 (Bad Request)

http://mylocalhostname.com/elasticsearch/*/_mapping/field/*?ignore_unavailable=false&allow_no_indices=false&include_defaults=true&_=1445811221725

IndexPattern's configured pattern does not match any indices
我已尝试删除所有索引,如图所示,“.kibana”索引是在我刷新kibana url后创建的。这表明Kibana可以达到弹性搜索。所有设备都在本地安装

版本:

kibana-4.1.2-windows
elasticsearch-1.7.3
logstash-1.5.4

即使我有同样的问题,我也能够将消息记录到日志库中,但无法将其记录到Kibana UI中。因此,在做了一些研究并与我的朋友聊天后,我发现在为应用程序中的日志编制索引时,我们需要按照ELK标准格式化日期。我在将邮件索引到日志库时进行了日期格式化。。只需将其添加到索引json数组中:$message['timestamp']=date(\DateTime::ISO8601)这将解决问题

下面是我正在索引的最终数据:

$params=[ “索引”=>“我的索引名”, 'type'=>'log_messages', “正文”=>$message ];


快乐编码:)

使用logstash-2015.10.*作为索引模式,我已经尝试了所有这些组合。