0

我正在尝试将 ElasticSearch 与 Kibana 连接。两者都安装在同一台机器上。修改了指向 ElasticSearch Server 的 Kibana(config.js)。

config.js 设置

define(['settings'],
function (Settings) {


  return new Settings({

    elasticsearch: "http://localhost:9200",

    kibana_index: "kibana-int",

    panel_names: [
      'histogram',
      'map',
      'pie',
      'table',
      'filtering',
      'timepicker',
      'text',
      'fields',
      'hits',
      'dashcontrol',
      'column',
      'derivequeries',
      'trends',
      'bettermap',
      'query',
      'terms'
    ]
  });
});

我为此 JSON 文档创建了索引“twitter”

curl -XPUT ['http://localhost:9200/twitter/tweet/1]' -d '{
    "user" : "test",
    "post_date" : "2011-11-15T14:12:12",
    "message" : "trying out Elastic Search"
}'

我确实检查了 ElasticSearch 中存在“twitter”索引的索引文件夹。但是当我尝试点击这个网址时

[http://localhost/kibana/index.html#/dashboard/file/twitter.json]

我收到此错误:

错误在 [http://localhost:9200/INDEX_MISSING/_mapping] 处找不到索引。请至少创建一个索引。如果您使用的是代理,请确保其配置正确。

我确实清除了浏览器缓存并重新测试,但仍然发生。网络服务器 - Apache HTTP

任何帮助将不胜感激。

4

1 回答 1

0

指向 json 文件中的“twitter”索引后确实解决了问题。

“索引”:{“间隔”:“无”,“模式”:“[logstash-]YYYY.MM.DD”,“默认”:“twitter”}

于 2014-02-06T07:57:06.117 回答