kinaba 安装踩坑: FATAL Error: [elasticsearch.url]: definition for this key is missing
操作系统:Linux
kibana 版本: 7.4.0
1. 在/etc/yum.repos.d/ 下新建 kibana.repo 配置 yum 源地址 内容如下:
[root@localhost yum.repos.d]# cat kibana.repo
[kibana-.x]
name=Kibana repository for .x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=
autorefresh=
type=rpm-md
2. 安装 kibana
sudo yum install kibana
3. 安装完成之后,kibana 的相关目录如下所示:

4. 修改配置文件 ,主要是添加 elasticsearch 的信息:
server.port:
server.host: "127.0.0.1"
server.name: "tanklog"
elasticsearch.url: "http://127.0.0.1:9200"
5. 启动 kibana (由于 root 用户不能直接启动 kibana,可以新建一个用户专门用来管理 kibana,或者在启动命令后追加 --allow-root)
/usr/share/kibana/bin/kibana --allow-root
6. 然后会报错如下:
FATAL Error: [elasticsearch.url]: definition for this key is missing
7. 经过一波操作之后,发现需要将 url 换成 hosts,配置文件需要设置为如下所示:
需要用: elasticsearch.hosts, 而不是: elasticsearch.url
server.port:
server.host: "127.0.0.1"
server.name: tanklog
elasticsearch.hosts: ["http://localhost:9200/"]
# elasticsearch.url: "http://localhost:9200"
8. kibana 本身没问题,启动成功时会出现如下日志:
[root@localhost kibana]# /usr/share/kibana/bin/kibana --allow-root
log [::50.254] [info][plugins-system] Setting up [] plugins: [security,translations,inspector,data]
log [::50.263] [info][plugins][security] Setting up plugin
log [::50.266] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
log [::50.266] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
log [::50.325] [info][plugins][translations] Setting up plugin
log [::50.326] [info][data][plugins] Setting up plugin
log [::50.328] [info][plugins-system] Starting [] plugins: [security,translations,data]
log [::15.769] [warning][plugin] Skipping non-plugin directory at /usr/share/kibana/src/legacy/core_plugins/metric_vis
log [::15.832] [warning][plugin] Skipping non-plugin directory at /usr/share/kibana/src/legacy/core_plugins/table_vis
log [::15.833] [warning][plugin] Skipping non-plugin directory at /usr/share/kibana/src/legacy/core_plugins/tagcloud
log [::15.910] [warning][plugin] Skipping non-plugin directory at /usr/share/kibana/src/legacy/core_plugins/vega
log [::17.487] [info][status][plugin:kibana@7.4.] Status changed from uninitialized to green - Ready
log [::17.494] [info][status][plugin:elasticsearch@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.496] [info][status][plugin:xpack_main@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.508] [info][status][plugin:telemetry@7.4.] Status changed from uninitialized to green - Ready
log [::17.511] [info][status][plugin:graph@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.525] [info][status][plugin:monitoring@7.4.] Status changed from uninitialized to green - Ready
log [::17.529] [info][status][plugin:spaces@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.563] [info][status][plugin:security@7.4.] Status changed from uninitialized to green - Ready
log [::17.565] [info][status][plugin:searchprofiler@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.568] [info][status][plugin:ml@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.635] [info][status][plugin:tilemap@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.638] [info][status][plugin:watcher@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.654] [info][status][plugin:grokdebugger@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.660] [info][status][plugin:dashboard_mode@7.4.] Status changed from uninitialized to green - Ready
log [::17.662] [info][status][plugin:logstash@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.670] [info][status][plugin:beats_management@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.689] [info][status][plugin:apm_oss@7.4.] Status changed from uninitialized to green - Ready
log [::17.727] [info][status][plugin:apm@7.4.] Status changed from uninitialized to green - Ready
log [::17.729] [info][status][plugin:code@7.4.] Status changed from uninitialized to green - Ready
log [::17.731] [info][status][plugin:data@7.4.] Status changed from uninitialized to green - Ready
log [::17.733] [info][status][plugin:visualizations@7.4.] Status changed from uninitialized to green - Ready
log [::17.740] [info][status][plugin:interpreter@7.4.] Status changed from uninitialized to green - Ready
log [::17.742] [info][status][plugin:tile_map@7.4.] Status changed from uninitialized to green - Ready
log [::17.746] [info][status][plugin:task_manager@7.4.] Status changed from uninitialized to green - Ready
log [::17.751] [info][status][plugin:maps@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.770] [info][status][plugin:canvas@7.4.] Status changed from uninitialized to green - Ready
log [::17.776] [info][status][plugin:license_management@7.4.] Status changed from uninitialized to green - Ready
log [::17.779] [info][status][plugin:cloud@7.4.] Status changed from uninitialized to green - Ready
log [::17.781] [info][status][plugin:index_management@7.4.] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [::17.799] [info][status][plugin:console@7.4.] Status changed from uninitialized to green - Ready
9. 由于我的 elasticsearch 版本是7.3.2, 与 kibana 版本不一致,所以启动过程中出现了 error, 需要升级 elasticsearch 版本为 7.4.0
g [::18.088] [info][status][plugin:table_vis@7.4.] Status changed from uninitialized to green - Ready
log [::18.090] [info][status][plugin:tagcloud@7.4.] Status changed from uninitialized to green - Ready
log [::18.092] [info][status][plugin:vega@7.4.] Status changed from uninitialized to green - Ready
log [::18.096] [warning][browser-driver][reporting] Enabling the Chromium sandbox provides an additional layer of protection.
log [::19.041] [error][status][plugin:xpack_main@7.4.] Status changed from yellow to red - This version of Kibana requires Elasticsearch v7.4.0 on all nodes. I found the following incompatible nodes in your cluster: v7.3.2 @ 192.168.1.27: (192.168.1.27)
log [::19.042] [error][status][plugin:graph@7.4.] Status changed from yellow to red - This version of Kibana requires Elasticsearch v7.4.0 on all nodes. I found the following incompatible nodes in your cluster: v7.3.2 @ 192.168.1.27: (192.168.1.27)
升级 elasticsearch 版本
sudo yum -y install elasticsearch-oss
10. 启动 kibana,查看日志信息,发现有很多 warn
[warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
根据 warn 提示,在 kibana.yml 里面添加缺失的属性内容
xpack.reporting.encryptionKey: "a_random_string"
xpack.security.encryptionKey: "something_at_least_32_characters"
启动 kibana,且将启动日志收集到指定文件
/usr/share/kibana/bin/kibana --allow-root > /var/lib/kibana/kibana.log &
访问
kinaba 安装踩坑: FATAL Error: [elasticsearch.url]: definition for this key is missing的更多相关文章
- kinaba 安装踩坑: FATAL Error: [elasticsearch.url]: definition for this key is missing 转
安装 https://www.jianshu.com/p/875457cb8da6 操作系统:Linux kibana 版本: 7.4.0 1. 在/etc/yum.repos.d/ 下新建 ...
- Android Studio安装踩坑
title: Android Studio安装踩坑 date: 2018-09-07 19:31:32 updated: tags: [Android,Android Studio,坑] descri ...
- Nextcloud fpm 版在 Dokcer 下安装踩坑
安装 首先到 https://registry.hub.docker.com/_/nextcloud 获取 Nextcloud 的示例 docker-compose version: '2' volu ...
- Symfony没有安装依赖_PHP Fatal error: require(): Failed opening required
$ php bin/console server:run PHP Warning: require(D:\home\workspace\pd\app/../vendor/autoload.php): ...
- VNPY - windows 安装踩坑记录
twisted requires PyHamcrest>=, which is not ins grin requires argparse>=1.1, which is not inst ...
- python2用pip进行安装时报错Fatal error in launcher: Unable to create process using '"'
win7下python3和python2共存环境 用pip安装一个包执行pip2 install xxx的时候报错Fatal error in launcher: Unable to create p ...
- ubuntu 16.04 + eigen3 安装(解决 fatal error: Eigen/Core: No such file or directory)
1.安装 sudo apt-get install libeigen3-dev 2. 解决 fatal error: Eigen/Core: No such file or directory 当调用 ...
- deepin 安装scrapy安装出错:fatal error: Python.h 的解决办法
环境deepin Linux 15.7 Python3.6.5 今天重新装了deepin系统,需要重新安装scrapy,直接pip了一下,没成. 报错:fatal error: Python.h: 没 ...
- 全文搜索引擎 Elasticsearch 安装踩坑记录
一.安装 Elastic 需要 Java 8 环境.如果你的机器还没安装 Java 安装完 Java,就可以跟着官方文档安装 Elastic.直接下载压缩包比较简单. $ wget https://a ...
随机推荐
- UVA 10790 How Many Points of Intersection? 组合数学
We have two rows. There are a dots on the top row and b dots on the bottom row. We draw line segment ...
- Zabbix设置自定义监控项之——监控tcp连接状态
目录 一.用户自定义参数 二.配置 监控 TCP 连接状态 在实际监控中,除了官方自带的一些监控项,我们很多时候有一些定制化监控,比如特定的服务.TCP 连接状态等等,这时候就需要自定义监控项.自定义 ...
- SAP MM模块相关透明表收集
物料表 MCHA 批次表(批次.评估类型 工厂物料) MARA 查看物料数据(发票名称.创建时间.人员) MARC 物料数据查询(利润中心.状态.在途) MAKT 查看物料描述 MKPF 物料抬头 M ...
- [笔记] Git 冲突处理
这是一篇关于 git 解冲突的笔记,没有什么干货. TortoiseGit 小乌龟 通常情况下,会比较喜欢使用小乌龟解冲突,详见:git 使用 tortoisegit 解冲突 但部分复杂的场景,反而需 ...
- Log4Net记录日志(mvc)
转自:http://blog.csdn.net/zhoufoxcn/article/details/2220533 感谢:柄棋先生 第一步:下载Log4Net 下载地址:http://logging. ...
- SocketServer模块与简单并发服务器
思维导图文件:https://files-cdn.cnblogs.com/files/benjieming/SocketServer%E6%A8%A1%E5%9D%97%E4%B8%8E%E7%AE% ...
- 续~ES6 新语法 (symbol、set集合、 数组对象的filter(),reduce(),weakset(),map()方法)
一.symbol 回顾数据类型: 基本类型(原始类型): String Number Boolean Undifined Null Symbol 引用类型: Objects 1.1 创建symbol ...
- elasticsearch 入门篇
前言: 要论入门最好的文档,非elasticsearch权威指南和官方的开发文档莫属,我只是基于这两份文档,记录一些关键知识点和自己的理解. 我们为什么要用elasticsearch,或者说来解决什么 ...
- vue学习指南:第二篇(详细Vue基础) - Vue的指令
一. Vue 的介绍 1. vue是一个 mvvm 的框架.(面试官经常会问的),angular 是 mvc的框架. 2. vm 是 vum 的实例,这个实例存在计算机内存中,主要干两件大事: 1. ...
- centos6.8下hadoop3.1.1完全分布式安装指南
前述:这篇文档是建立在三台虚拟机相互ping通,防火墙关闭,hosts文件修改,SSH 免密码登录,主机名修改等的基础上开始的. 一.传入文件 1.创建安装目录 mkdir /usr/local/so ...