安装elasticsearch+kibana+searchguard

---------------------------------安装es的search-guard------------------------------------------------------------------

1、下载对应的版本并运行安装命令(https://docs.search-guard.com/6.x-25/search-guard-versions)

.\bin\elasticsearch-plugin install -b file:///C:\Users\Administrator\Downloads\search-guard-6-6.8.3-25.5.zip

2、https://downloads.search-guard.com/resources/certificates/certificates.zip下载测试证书解压并放置到es的config目录下

3、修改elasticsearch.yml

--------------------------

xpack.security.enabled: false

searchguard.ssl.transport.pemcert_filepath: esnode.pem

searchguard.ssl.transport.pemkey_filepath: esnode-key.pem

searchguard.ssl.transport.pemtrustedcas_filepath: root-ca.pem

searchguard.ssl.transport.enforce_hostname_verification: false

searchguard.ssl.http.enabled: true

searchguard.ssl.http.pemcert_filepath: esnode.pem

searchguard.ssl.http.pemkey_filepath: esnode-key.pem

searchguard.ssl.http.pemtrustedcas_filepath: root-ca.pem

searchguard.allow_unsafe_democertificates: true

searchguard.allow_default_init_sgindex: true

searchguard.authcz.admin_dn:

- CN=kirk,OU=client,O=client,L=test,C=de

searchguard.enable_snapshot_restore_privilege: true

searchguard.check_snapshot_restore_write_privileges: true

searchguard.restapi.roles_enabled: ["sg_all_access"]

--------------------------

4、启动es访问 https://localhost:9200/  用户名密码 admin\admin

5、使用sgadmin tool更新应用配置切换到目录plugins\search-guard-6\tools

执行 .\sgadmin.bat -cd ..\sgconfig -key ..\..\..\config\kirk-key.pem -cert ..\..\..\config\kirk.pem -cacert ..\..\..\config\root-ca.pem -nhnv -icl

#.\sgadmin.bat -icl -nhnv -cd ..\sgconfig -cacert ..\..\..\config\root-ca.pem -cert ..\..\..\config\kirk.pem -key ..\..\..\config\kirk.key -keypass XtHB8KsoVFhy

6、配置社区版本 ,修改elasticsearch.yml

-----------------------------------

searchguard.enterprise_modules_enabled: false

-----------------------------------

7、校验版本 https://localhost:9200/_searchguard/license

-------------------------------------ssl证书下载以及配置--------------------------------------------------------------------------

1、下载offline TLS tool(https://search.maven.org/search?q=a:search-guard-tlstool)

-------------------------------------安装kibana的search-guard---------------------------------------------------------------------------

1、下载对应的版本并运行安装命令(https://docs.search-guard.com/6.x-25/search-guard-versions)

.\bin\kibana-plugin install file:///C:\Users\Administrator\Downloads\search-guard-kibana-plugin-6.8.3-18.5.zip

2、修改kibana.yml

---------------------------------------

xpack.security.enabled: false

# Use HTTPS instead of HTTP

elasticsearch.hosts: ["https://localhost:9200"]

# Configure the Kibana internal server user

elasticsearch.username: "admin"

elasticsearch.password: "admin"

# Disable SSL verification because we use self-signed demo certificates

elasticsearch.ssl.verificationMode: none

# Whitelist the Search Guard Multi Tenancy Header

elasticsearch.requestHeadersWhitelist: [ "Authorization", "sgtenant" ]

---------------------------------------

3、启动kibana并访问http://localhost:5601/

参考资料

https://github.com/floragunncom/

https://docs.search-guard.com/6.x-25/

https://github.com/liyifan687/Elasticsearch

https://blog.csdn.net/wangkai_123456/article/details/95938714

https://docs.search-guard.com/6.x-25/offline-tls-tool

https://github.com/beshu-tech/readonlyrest-docs/blob/master/elasticsearch.md#rules

https://www.aboutyun.com/forum.php?mod=viewthread&tid=27241&ordertype=1

---------------------------------安装es的search-guard------------------------------------------------------------------
1、下载对应的版本并运行安装命令(https://docs.search-guard.com/6.x-25/search-guard-versions).\bin\elasticsearch-plugin install -b file:///C:\Users\Administrator\Downloads\search-guard-6-6.8.3-25.5.zip
2、https://downloads.search-guard.com/resources/certificates/certificates.zip下载测试证书解压并放置到es的config目录下
3、修改elasticsearch.yml--------------------------xpack.security.enabled: false
searchguard.ssl.transport.pemcert_filepath: esnode.pemsearchguard.ssl.transport.pemkey_filepath: esnode-key.pemsearchguard.ssl.transport.pemtrustedcas_filepath: root-ca.pemsearchguard.ssl.transport.enforce_hostname_verification: falsesearchguard.ssl.http.enabled: truesearchguard.ssl.http.pemcert_filepath: esnode.pemsearchguard.ssl.http.pemkey_filepath: esnode-key.pemsearchguard.ssl.http.pemtrustedcas_filepath: root-ca.pemsearchguard.allow_unsafe_democertificates: truesearchguard.allow_default_init_sgindex: truesearchguard.authcz.admin_dn:  - CN=kirk,OU=client,O=client,L=test,C=desearchguard.enable_snapshot_restore_privilege: truesearchguard.check_snapshot_restore_write_privileges: truesearchguard.restapi.roles_enabled: ["sg_all_access"]
--------------------------
4、启动es访问 https://localhost:9200/  用户名密码 admin\admin

5、使用sgadmin tool更新应用配置切换到目录plugins\search-guard-6\tools
执行 .\sgadmin.bat -cd ..\sgconfig -key ..\..\..\config\kirk-key.pem -cert ..\..\..\config\kirk.pem -cacert ..\..\..\config\root-ca.pem -nhnv -icl
.\sgadmin.bat -icl -nhnv -cd ..\sgconfig -cacert ..\..\..\config\root-ca.pem -cert ..\..\..\config\kirk.pem -key ..\..\..\config\kirk.key -keypass XtHB8KsoVFhy
6、配置社区版本 ,修改elasticsearch.yml-----------------------------------searchguard.enterprise_modules_enabled: false-----------------------------------7、校验版本 https://localhost:9200/_searchguard/license
-------------------------------------ssl证书下载以及配置--------------------------------------------------------------------------
1、下载offline TLS tool(https://search.maven.org/search?q=a:search-guard-tlstool)
-------------------------------------安装kibana的search-guard---------------------------------------------------------------------------
1、下载对应的版本并运行安装命令(https://docs.search-guard.com/6.x-25/search-guard-versions).\bin\kibana-plugin install file:///C:\Users\Administrator\Downloads\search-guard-kibana-plugin-6.8.3-18.5.zip
2、修改kibana.yml---------------------------------------xpack.security.enabled: false
# Use HTTPS instead of HTTPelasticsearch.hosts: ["https://localhost:9200"]
# Configure the Kibana internal server userelasticsearch.username: "admin"elasticsearch.password: "admin"
# Disable SSL verification because we use self-signed demo certificateselasticsearch.ssl.verificationMode: none
# Whitelist the Search Guard Multi Tenancy Headerelasticsearch.requestHeadersWhitelist: [ "Authorization", "sgtenant" ]---------------------------------------
3、启动kibana并访问http://localhost:5601/
参考资料  https://github.com/floragunncom/https://docs.search-guard.com/6.x-25/https://github.com/liyifan687/Elasticsearchhttps://blog.csdn.net/wangkai_123456/article/details/95938714https://docs.search-guard.com/6.x-25/offline-tls-tool

https://github.com/beshu-tech/readonlyrest-docs/blob/master/elasticsearch.md#ruleshttps://www.aboutyun.com/forum.php?mod=viewthread&tid=27241&ordertype=1

原文地址:https://www.cnblogs.com/wangfg/p/11824513.html

时间: 2024-11-08 19:02:10

安装elasticsearch+kibana+searchguard的相关文章

Helm 安装 ElasticSearch & Kibana

Helm 安装 ElasticSearch & Kibana二.提前下载镜像下面是我们需要用到的两个主要镜像,提前将其下载避免下载过慢启动超时而导致失败. kibana 镜像: kibana:6.7.0elasticsearch 镜像: elasticsearch:6.7.0$ docker pull docker.elastic.co/kibana/kibana:6.7.0$ docker pull docker.elastic.co/elasticsearch/elasticsearch:6

Centos 6.4 安装elasticsearch+kibana

elasticsearch和kibanna的链接地址:https://www.elastic.co/downloads,我的环境里用的包为kibana-4.1.1-linux-x64.tar.gz和elasticsearch-1.7.1.zip. 安装Elasticsearch 以为此前已经配置过java环境,所以直接安装就可以了. [[email protected] ~]# unzip elasticsearch-1.7.1.zip [[email protected] ~]# mv ela

Ubuntu16.04下安装elasticsearch+kibana实现php客户端的中文分词

1.下载安装elasticsearch和kibana wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.2.deb dpkg -i elasticsearch-5.4.2.deb wget https://artifacts.elastic.co/downloads/kibana/kibana-5.4.2-amd64.deb dpkg -i kibana-5.4.2-amd64.deb 2.安装

elasticsearch + kibana + x-pack + logstash_集群部署安装

elasticsearch 部分总体描述: 1.elasticsearch 的概念及特点.概念:elasticsearch 是一个基于 lucene 的搜索服务器.lucene 是全文搜索的一个框架.特点: - 分布式,可扩展,高可用 - 能够实时搜索分析数据. - 复杂的 RESTful API.总结:是一个采用RESTful API 标准,实现分布式,可扩展以及高可用的实时数据存储分析的全文搜索工具. 2.elasticsearch 涉及的相关概念.(关系菲关系对比)相关概念: -Node:

ELK学习笔记(一)安装Elasticsearch、Kibana、Logstash和X-Pack

最近在学习ELK的时候踩了不少的坑,特此写个笔记记录下学习过程. 日志主要包括系统日志.应用程序日志和安全日志.系统运维和开发人员可以通过日志了解服务器软硬件信息.检查配置过程中的错误及错误发生的原因.经常分析日志可以了解服务器的负荷,性能安全性,从而及时采取措施纠正错误. 通常,日志被分散的储存不同的设备上.如果你管理数十上百台服务器,你还在使用依次登录每台机器的传统方法查阅日志.这样是不是感觉很繁琐和效率低下.当务之急我们使用集中化的日志管理,例如:开源的syslog,将所有服务器上的日志收

安装logstash+kibana+elasticsearch+redis搭建集中式日志分析平台

本文是参考logstash官方文档实践的笔记,搭建环境和所需组件如下: Redhat 5.7 64bit / CentOS 5.x JDK 1.6.0_45 logstash 1.3.2 (内带kibana) elasticsearch 0.90.10 redis 2.8.4 搭建的集中式日志分析平台流程如下: elasticsearch 1.下载elasticsearch. wget https://download.elasticsearch.org/elasticsearch/elasti

【好文】ElasticSearch 5学习——安装Elasticsearch、Kibana和X-Pack

安装准备: 安装Elasticsearch唯一的要求是安装官方新版的Java,包括对应的Jdk. 安装Elasticsearch 首先到官网下载最新版本的Elasticsearch压缩包. 可以使用命令,注意将最新的可用的下载链接填入: curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0.2.zip unzip elasticsearch-5.0.2.zip cd elasticsea

分布式搜索引擎ElasticSearch+Kibana (Marvel插件安装详解)

在安装插件的过程中,尤其是安装Marvel插件遇到了很多问题,要下载license.Marvel-agent,又要下载安装Kibana 版本需求 Java 7 or later Elasticsearch 2.4.2 Kibana 4.5 Elasticsearch License 2.4.2 plugin 系统版本是:CentOS release 6.6 一.简介 Marvel插件介绍 Marvel插件:在簇中从每个节点汇集数据.这个插件必须每个节点都得安装. Marvel是Elasticse

安装logstash+elasticsearch+kibana

系统环境 # cat /etc/redhat-release CentOS release 6.4 (Final) # uname -a Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 1.下载软件包 # curl -O https://download.elasticsearch.org/logstash/lo