0

我正在尝试安装 kibana + elasticsearch + fluentd。我同时安装了 elasticsearch 和 fluentd 并且可以正常工作,但似乎无法让 kibana 链接到 elasticsearch。

我正在使用 Kibana3,按照 elasticsearch 网站上的安装说明进行操作。

基本上,下载 Tar 文件,提取内容,更改 config.js 将 elasticsearch 参数设置为 Elasticsearch 服务器的标准主机名。将提取目录的内容复制到您的网络服务器。

我已经完成了所有这些。我正在使用 apache 运行 ubuntu 12.04。我将 kibana 文件复制到 /var/www 文件夹的根目录,当我访问该站点时,有一个带有 kibana 徽标的标题 {{dashboard.current.title}}。

我错过了什么。我的 config.js 文件如下

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


  /** @scratch /configuration/config.js/2
   * === Parameters
   */
  return new Settings({

    /** @scratch /configuration/config.js/5
     * ==== elasticsearch
     *
     * The URL to your elasticsearch server. You almost certainly don't
     * want +http://localhost:9200+ here. Even if Kibana and Elasticsearch are on
     * the same host. By default this will attempt to reach ES at the same host you have
     * kibana installed on. You probably want to set it to the FQDN of your
     * elasticsearch host
     */
    elasticsearch: "http://"+window.location.myserver-fqdn+":9200",

    /** @scratch /configuration/config.js/5
     * ==== default_route
     *
     * This is the default landing page when you don't specify a dashboard to load. You can specify
     * files, scripts or saved dashboards here. For example, if you had saved a dashboard called
     * `WebLogs' to elasticsearch you might use:
     *
     * +default_route: '/dashboard/elasticsearch/WebLogs',+
     */
    default_route     : '/dashboard/file/default.json',

    /** @scratch /configuration/config.js/5
     * ==== kibana-int
     *
     * The default ES index to use for storing Kibana specific object
     * such as stored dashboards
     */
    kibana_index: "kibana-int",

    /** @scratch /configuration/config.js/5
     * ==== panel_name
     *
     * An array of panel modules available. Panels will only be loaded when they are defined in the
     * dashboard, but this list is used in the "add panel" interface.
     */
    panel_names: [
      'histogram',
      'map',
      'pie',
      'table',
      'filtering',
      'timepicker',
      'text',
      'hits',
      'column',
      'trends',
      'bettermap',
      'query',
      'terms',
      'stats',
      'sparklines'
    ]
  });
});
4

1 回答 1

0

You have to use kibana 3 with tomcat server. Just copy your kibana folder into webapps folder of tomcat.

  • now start kibana with following link in your browser: 8080 is tomcat port.

    http:localhost:8080/Kibana-folder-name

于 2015-06-18T06:31:16.707 回答