给Elasticsearch 5.2.2 设置用户权限 how to setting security for elasticsearch on windows
2023-09-11 14:21:33 时间
1. download the plugin of elasticsearch:
下载 readonlyrest-1.14.0_es5.2.2.zip
2. install readonlyrest plugin:
C:\Users\Administrator\Downloads\elasticsearch-5.2.2\bin\elasticsearch-plugin.bat install file:///d:/readonlyrest-1.14.0_es5.2.2.zip
3. open elasticsearch.yml add blow code:
readonlyrest: enable: true response_if_req_forbidden: Sorry, your request is forbidden. access_control_rules: - name: Full access with HTTP auth auth_key: admin:123456 #user: admin, password:123456 type: allow
4. restart elasticsearch service.
5. done;
logstash配置:
input { file { path => "D:/logstash-5.2.2/bin/testdata.txt" start_position => "beginning" sincedb_path => "D:/logstash-5.2.2/bin/sincedb" codec => json { charset => "UTF-8" } } } filter { json{ source => "message" } mutate { remove_field => [ "message","path","@version","@timestamp","host","_id","value"] } } output { elasticsearch { action => "index" hosts => ["http://localhost:9100/"] user => "admin" password => "123456" index => "testdb" document_type => "user" workers => 1 } #stdout { #codec => rubydebug #codec => json_lines #} }
相关文章
- Windows 由于无法验证发布者,windows阻止控件安装怎么办
- windows Server 2008 R2 IE增强安全配置正在阻止来自下列网站的内容
- [Docker] Install Docker on Windows (hp) and start with Kitematic
- Vim as Python IDE on windows(转)
- [MySQL]修改root密码的4种方法(以windows为例)
- MFC Windows 程序设计[245]之简单控件模型集合(附源码)
- MFC Windows 程序设计[二十四]之windows目录展示(附源码)
- Install MongoDB Community Edition on Windows
- How to debug .NET Core RC2 app with Visual Studio Code on Windows?
- windows下cuda的安装
- Install MongoDB Community Edition on Windows
- Windows之Chocolatey:windows下的apt-get即Chocolatey简介、安装、使用方法之详细攻略
- windows server 2008 安装Microsoft ActiveSync 6.1提示缺少一个Windows Mobile设备中心所须要的Windows组件
- [h5棋牌项目]-08-请安装所需的版本的 Windows SDK 或者在项目属性页的问题解决方案
- 【错误记录】Windows 控制台程序编译报错 ( WINDOWS.H already included. MFC apps must not #include <Windows.h> )
- 官方原版Windows XP SP3(VOL)中文简体版ISO下载
- Windows 驱动开发 - 8
- Windows 10 开机不一会出现MEMORY_MANAGEMENT蓝屏
- Windows 11 on ARM Insider Preview 下载
- 内网渗透(二十一)之Windows协议认证和密码抓取-Golden Ticket黄金票据制作原理及利用方式
- 3.Windows应急响应:蠕虫病毒
- Windows安装WSL进行机器学习(windows和Ubuntu同时使用)