Elasticsearch Cluster 2019(2)Kibana Issue or Upgrade
Recently, our Kibana get error messages as follow:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-6l5WfCDQyGKomWFe'". Either the 'unsafe-inline' keyword, a hash ('sha256-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution.
Solution:
Currently, I do not know. My Elasticsearch and Kibana Versions are 7.2.1
Try to upgrade the Kibana version to 7.5.1
> wget https://artifacts.elastic.co/downloads/kibana/kibana-7.5.1-linux-x86_64.tar.gz
> tar zxvf kibana-7.5.1-linux-x86_64.tar.gz
> mv kibana-7.5.1-linux-x86_64 ~/tool/kibana-7.5.1
> sudo ln -s /home/elastic/tool/kibana-7.5.1 /opt/kibana-7.5.1
> sudo ln -s /opt/kibana-7.5.1 /opt/kibana
Edit the configuration file
> vi config/kibana.yml
server.host: "els.sillycat2.com"
server.basePath: "/kibana"
elasticsearch.hosts: ["http://els.sillycat3.com:9200"]
The kibana-7.5.1 does not help, we still need kibana-7.2.1, but we need the server.basePath there. And we need to update our nginx settings as well.
location /kibana/ {
proxy_pass http://els.sillycat2.com:5601/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
}
It works pretty well.
References:
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html
Nginx proxy to kibana
https://segmentfault.com/q/1010000011782771
https://www.cnblogs.com/yanjieli/p/11187689.html
https://discuss.elastic.co/t/nginx-reverse-proxy-setup-for-kibana/167327/5
分享到:
相关推荐
ELK是Elasticsearch、Logstash、Kibana的简称,这三者是核心套件,但并非全部。 Elasticsearch是实时全文搜索和分析引擎,提供搜集、分析、存储数据三大功能;是一套开放REST和JAVA API等结构提供高效搜索功能,可...
elasticsearch-6.8.1+kibana-6.8.1+ logstash-6.3.0 elk日志框架所必须的配套组件
就是学习这三个的一些心得体会,适合初学者,适合给他人讲解使用!
实战Elasticsearch、Logstash、Kibana++分布式大数据搜索与日志挖掘及可视化解决方案
vagrant-elk-box, 安装 elasticsearch,logstash和kibana的Vagrant框 这里vagrant安装 elasticsearch 1.7,logstash 1.5.4和 kibana 4.1.1先决条件VirtualBox和 Vagrant 其他提供商,如VMWare可能工作,没有测试 !...
elasticsearch-7.10.2、kibana-7.10.2 Windows 版
本压缩包内包含:Elasticsearch+Logstash+Kibana+Filebeat(ELK全部7.9.0版本)
ELK是ElasticSearch、Logstash、Kibana的简称。ELK在最近两年迅速崛起,成为机器数据分析,或者说实时日志处理领域,开源界的第一选择
elasticsearch-7.10.2、kibana-7.10.2 Mac 版
elasticsearch-6.2.4+kibana-6.2.4官方原版打包,体验不一样的下载速度!
开源社区正好有相对应的开源项目:logstash(收集)、elasticsearch(存储+搜索)、kibana(展示),我们将这三个组合起来的技术称之为ELK,所以说ELK指的是Elasticsearch、Logstash、Kibana技术栈的结合。...
elasticsearch-6.2.2+kibana-6.2.2.rar,网上下载比较慢,在这里存一份,方便以后用。看好版本6.2.2
elasticsearch-5.2.0和kibana-5.2.0-windows-x86,es开发所用工具
这个压缩包有5个elasticsearch所需的软件,elasticsearch+elasticsearch-head+kibana+IK+jdk
实战Elasticsearch、Logstash、Kibana++分布式大数据搜索与日志挖掘及可视化解决方案.pdf
es:elasticsearch 对数据进行存储,分类,搜索 logstash: 日志收集,filter(过滤),日志输出到(reids,kafka,es)中 kibana:日志展示(查询es中保存的数据)
Elasticsearch集群部署及kibana安装笔记Elasticsearch集群部署部署步骤1. 使用root账户创建用户2. 上次相关安装包3. 安装java(如已经安装,可不需要重复)4. 安装ES5. JVM 配置6. 修改系统配置7. 启动elasticsearch...
ELK是Elasticsearch、Logstash、Kibana的简称,这三者是核心套件,但并非全部。 Elasticsearch是实时全文搜索和分析引擎,提供搜集、分析、存储数据三大功能;是一套开放REST和JAVA API等结构提供高效搜索功能,可...
由于国外站点访问下载起来非常慢,所以提供linux下7.8.0 elasticsearch+kibana 的安装包。
elasticsearch、ik、kibana压缩包