Nginx代理Kibana并实现登录认证实战案例
Nginx代理Kibana并实现登录认证实战案例
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
运维工作中,害人之心不可有,防人之心不可无呀,我们知道Kibana的WebUI默认没有认证功能,因此我们借助nginx来实现认证功能,此时我们需要将Kibanla服务监听到本地回环接口,而后使用nginx反向代理即可。接下来我们就一起实战一下该过程吧~
一.部署Kibana
博主推荐阅读: https://www.cnblogs.com/yinzhengjie2020/p/12990158.html
二.部署nginx
1>.下载nginx源码包
[root@es101.yinzhengjie.com ~]# wget http://nginx.org/download/nginx-1.16.1.tar.gz --2020-06-22 06:34:40-- http://nginx.org/download/nginx-1.16.1.tar.gz Resolving nginx.org (nginx.org)... 95.211.80.227, 62.210.92.35, 2001:1af8:4060:a004:21::e3 Connecting to nginx.org (nginx.org)|95.211.80.227|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://117.128.6.18/cache/nginx.org/download/nginx-1.16.1.tar.gz?ich_args2=469-22143707046257_c4aff03ddd88e5e524950de660023077_10001002_9c896d2edfc3f6d99333518939a83798_7504c5d211 ab237392942408ff20800e [following]--2020-06-22 06:34:40-- http://117.128.6.18/cache/nginx.org/download/nginx-1.16.1.tar.gz?ich_args2=469-22143707046257_c4aff03ddd88e5e524950de660023077_10001002_9c896d2edfc3f6d99333518939a8 3798_7504c5d211ab237392942408ff20800eConnecting to 117.128.6.18:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1032630 (1008K) [application/octet-stream] Saving to: ‘nginx-1.16.1.tar.gz’ nginx-1.16.1.tar.gz 100%[====================================================================================================>] 1008K --.-KB/s in 0.1s 2020-06-22 06:34:40 (9.93 MB/s) - ‘nginx-1.16.1.tar.gz’ saved [1032630/1032630] [root@es101.yinzhengjie.com ~]#
2>.解压nginx源码包
[root@es101.yinzhengjie.com ~]# ls kibana-6.8.9-amd64.deb nginx-1.16.1.tar.gz [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# tar -zxf nginx-1.16.1.tar.gz [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# ls kibana-6.8.9-amd64.deb nginx-1.16.1 nginx-1.16.1.tar.gz [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# ls nginx-1.16.1 auto CHANGES CHANGES.ru conf configure contrib html LICENSE man README src [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# ls -l nginx-1.16.1 total 772 drwxr-xr-x 6 1001 1001 4096 Jun 22 06:36 auto -rw-r--r-- 1 1001 1001 296463 Aug 13 2019 CHANGES -rw-r--r-- 1 1001 1001 452171 Aug 13 2019 CHANGES.ru drwxr-xr-x 2 1001 1001 4096 Jun 22 06:36 conf -rwxr-xr-x 1 1001 1001 2502 Aug 13 2019 configure drwxr-xr-x 4 1001 1001 4096 Jun 22 06:36 contrib drwxr-xr-x 2 1001 1001 4096 Jun 22 06:36 html -rw-r--r-- 1 1001 1001 1397 Aug 13 2019 LICENSE drwxr-xr-x 2 1001 1001 4096 Jun 22 06:36 man -rw-r--r-- 1 1001 1001 49 Aug 13 2019 README drwxr-xr-x 9 1001 1001 4096 Jun 22 06:36 src [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]#
3>.编译安装nginx
[root@es101.yinzhengjie.com ~]# apt -y install gcc make libpcre3 libpcre3-dev zlib1g-dev #安装依赖包
[root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# ls nginx-1.16.1 auto CHANGES CHANGES.ru conf configure contrib html LICENSE man README src [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# cd nginx-1.16.1/ [root@es101.yinzhengjie.com ~/nginx-1.16.1]# [root@es101.yinzhengjie.com ~/nginx-1.16.1]# ./configure --prefix=/yinzhengjie/softwares/nginx #其它参数你可以自己指定,我这里实验就制定了nginx的安装路径 ...... checking for System V shared memory ... found checking for POSIX semaphores ... not found checking for POSIX semaphores in libpthread ... found checking for struct msghdr.msg_control ... found checking for ioctl(FIONBIO) ... found checking for struct tm.tm_gmtoff ... found checking for struct dirent.d_namlen ... not found checking for struct dirent.d_type ... found checking for sysconf(_SC_NPROCESSORS_ONLN) ... found checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found checking for openat(), fstatat() ... found checking for getaddrinfo() ... found checking for PCRE library ... found checking for PCRE JIT support ... found checking for zlib library ... found creating objs/Makefile Configuration summary + using system PCRE library + OpenSSL library is not used + using system zlib library nginx path prefix: "/yinzhengjie/softwares/nginx" nginx binary file: "/yinzhengjie/softwares/nginx/sbin/nginx" nginx modules path: "/yinzhengjie/softwares/nginx/modules" nginx configuration prefix: "/yinzhengjie/softwares/nginx/conf" nginx configuration file: "/yinzhengjie/softwares/nginx/conf/nginx.conf" nginx pid file: "/yinzhengjie/softwares/nginx/logs/nginx.pid" nginx error log file: "/yinzhengjie/softwares/nginx/logs/error.log" nginx http access log file: "/yinzhengjie/softwares/nginx/logs/access.log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp" [root@es101.yinzhengjie.com ~/nginx-1.16.1]# echo $? 0 [root@es101.yinzhengjie.com ~/nginx-1.16.1]#
[root@es101.yinzhengjie.com ~/nginx-1.16.1]# make -j 2 ...... objs/src/http/modules/ngx_http_charset_filter_module.o \ objs/src/http/modules/ngx_http_userid_filter_module.o \ objs/src/http/modules/ngx_http_headers_filter_module.o \ objs/src/http/ngx_http_copy_filter_module.o \ objs/src/http/modules/ngx_http_not_modified_filter_module.o \ objs/src/http/modules/ngx_http_static_module.o \ objs/src/http/modules/ngx_http_autoindex_module.o \ objs/src/http/modules/ngx_http_index_module.o \ objs/src/http/modules/ngx_http_mirror_module.o \ objs/src/http/modules/ngx_http_try_files_module.o \ objs/src/http/modules/ngx_http_auth_basic_module.o \ objs/src/http/modules/ngx_http_access_module.o \ objs/src/http/modules/ngx_http_limit_conn_module.o \ objs/src/http/modules/ngx_http_limit_req_module.o \ objs/src/http/modules/ngx_http_geo_module.o \ objs/src/http/modules/ngx_http_map_module.o \ objs/src/http/modules/ngx_http_split_clients_module.o \ objs/src/http/modules/ngx_http_referer_module.o \ objs/src/http/modules/ngx_http_rewrite_module.o \ objs/src/http/modules/ngx_http_proxy_module.o \ objs/src/http/modules/ngx_http_fastcgi_module.o \ objs/src/http/modules/ngx_http_uwsgi_module.o \ objs/src/http/modules/ngx_http_scgi_module.o \ objs/src/http/modules/ngx_http_memcached_module.o \ objs/src/http/modules/ngx_http_empty_gif_module.o \ objs/src/http/modules/ngx_http_browser_module.o \ objs/src/http/modules/ngx_http_upstream_hash_module.o \ objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \ objs/src/http/modules/ngx_http_upstream_least_conn_module.o \ objs/src/http/modules/ngx_http_upstream_random_module.o \ objs/src/http/modules/ngx_http_upstream_keepalive_module.o \ objs/src/http/modules/ngx_http_upstream_zone_module.o \ objs/ngx_modules.o \ -ldl -lpthread -lcrypt -lpcre -lz \ -Wl,-E make[1]: Leaving directory '/root/nginx-1.16.1' [root@es101.yinzhengjie.com ~/nginx-1.16.1]# echo $? 0 [root@es101.yinzhengjie.com ~/nginx-1.16.1]#
[root@es101.yinzhengjie.com ~/nginx-1.16.1]# make install make -f objs/Makefile install make[1]: Entering directory '/root/nginx-1.16.1' test -d '/yinzhengjie/softwares/nginx' || mkdir -p '/yinzhengjie/softwares/nginx' test -d '/yinzhengjie/softwares/nginx/sbin' \ || mkdir -p '/yinzhengjie/softwares/nginx/sbin' test ! -f '/yinzhengjie/softwares/nginx/sbin/nginx' \ || mv '/yinzhengjie/softwares/nginx/sbin/nginx' \ '/yinzhengjie/softwares/nginx/sbin/nginx.old' cp objs/nginx '/yinzhengjie/softwares/nginx/sbin/nginx' test -d '/yinzhengjie/softwares/nginx/conf' \ || mkdir -p '/yinzhengjie/softwares/nginx/conf' cp conf/koi-win '/yinzhengjie/softwares/nginx/conf' cp conf/koi-utf '/yinzhengjie/softwares/nginx/conf' cp conf/win-utf '/yinzhengjie/softwares/nginx/conf' test -f '/yinzhengjie/softwares/nginx/conf/mime.types' \ || cp conf/mime.types '/yinzhengjie/softwares/nginx/conf' cp conf/mime.types '/yinzhengjie/softwares/nginx/conf/mime.types.default' test -f '/yinzhengjie/softwares/nginx/conf/fastcgi_params' \ || cp conf/fastcgi_params '/yinzhengjie/softwares/nginx/conf' cp conf/fastcgi_params \ '/yinzhengjie/softwares/nginx/conf/fastcgi_params.default' test -f '/yinzhengjie/softwares/nginx/conf/fastcgi.conf' \ || cp conf/fastcgi.conf '/yinzhengjie/softwares/nginx/conf' cp conf/fastcgi.conf '/yinzhengjie/softwares/nginx/conf/fastcgi.conf.default' test -f '/yinzhengjie/softwares/nginx/conf/uwsgi_params' \ || cp conf/uwsgi_params '/yinzhengjie/softwares/nginx/conf' cp conf/uwsgi_params \ '/yinzhengjie/softwares/nginx/conf/uwsgi_params.default' test -f '/yinzhengjie/softwares/nginx/conf/scgi_params' \ || cp conf/scgi_params '/yinzhengjie/softwares/nginx/conf' cp conf/scgi_params \ '/yinzhengjie/softwares/nginx/conf/scgi_params.default' test -f '/yinzhengjie/softwares/nginx/conf/nginx.conf' \ || cp conf/nginx.conf '/yinzhengjie/softwares/nginx/conf/nginx.conf' cp conf/nginx.conf '/yinzhengjie/softwares/nginx/conf/nginx.conf.default' test -d '/yinzhengjie/softwares/nginx/logs' \ || mkdir -p '/yinzhengjie/softwares/nginx/logs' test -d '/yinzhengjie/softwares/nginx/logs' \ || mkdir -p '/yinzhengjie/softwares/nginx/logs' test -d '/yinzhengjie/softwares/nginx/html' \ || cp -R html '/yinzhengjie/softwares/nginx' test -d '/yinzhengjie/softwares/nginx/logs' \ || mkdir -p '/yinzhengjie/softwares/nginx/logs' make[1]: Leaving directory '/root/nginx-1.16.1' [root@es101.yinzhengjie.com ~/nginx-1.16.1]# echo $? 0 [root@es101.yinzhengjie.com ~/nginx-1.16.1]#
[root@es101.yinzhengjie.com ~/nginx-1.16.1]# ll /yinzhengjie/softwares/nginx/ total 0 drwxr-xr-x 6 root root 54 Jun 22 06:48 ./ drwxr-xr-x 4 root root 39 Jun 22 06:48 ../ drwxr-xr-x 2 root root 333 Jun 22 06:48 conf/ drwxr-xr-x 2 root root 40 Jun 22 06:48 html/ drwxr-xr-x 2 root root 6 Jun 22 06:48 logs/ drwxr-xr-x 2 root root 19 Jun 22 06:48 sbin/ [root@es101.yinzhengjie.com ~/nginx-1.16.1]#
4>.修改kibana监听本地回环地址
[root@es101.yinzhengjie.com ~]# vim /etc/kibana/kibana.yml [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# egrep -v "^*#|^$" /etc/kibana/kibana.yml server.host: 127.0.0.1 elasticsearch.hosts: ["http://172.200.5.101:9200","http://172.200.5.102:9200","http://172.200.5.103:9200"] i18n.locale: "zh-CN" [root@es101.yinzhengjie.com ~]#
[root@es101.yinzhengjie.com ~]# ss -ntl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:* LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 128 172.200.5.101:5601 0.0.0.0:* LISTEN 0 128 [::ffff:172.200.5.101]:9200 *:* LISTEN 0 128 [::ffff:172.200.5.101]:9300 *:* LISTEN 0 128 [::]:22 [::]:* [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# systemctl restart kibana [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# ss -ntl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:* LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 128 127.0.0.1:5601 0.0.0.0:* LISTEN 0 128 [::ffff:172.200.5.101]:9200 *:* LISTEN 0 128 [::ffff:172.200.5.101]:9300 *:* LISTEN 0 128 [::]:22 [::]:* [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]#
5>..编辑nginx的配置文件反向代理kibana
[root@es101.yinzhengjie.com ~]# cp /yinzhengjie/softwares/nginx/conf/nginx.conf /yinzhengjie/softwares/nginx/conf/nginx.conf-`date +%F`
[root@es101.yinzhengjie.com ~]# vim /yinzhengjie/softwares/nginx/conf/nginx.conf [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# cat /yinzhengjie/softwares/nginx/conf/nginx.conf worker_processes 2; worker_cpu_affinity 00000001 00000010; events { worker_connections 100000; use epoll; accept_mutex on; multi_accept on; } http { include mime.types; default_type text/html; charset utf-8; log_format my_access_json '{"@timestamp":"$time_iso8601",' '"host":"$server_addr",' '"clientip":"$remote_addr",' '"size":$body_bytes_sent,' '"responsetime":$request_time,' '"upstreamtime":"$upstream_response_time",' '"upstreamhost":"$upstream_addr",' '"http_host":"$host",' '"uri":"$uri",' '"domain":"$host",' '"xff":"$http_x_forwarded_for",' '"referer":"$http_referer",' '"tcp_xff":"$proxy_protocol_addr",' '"http_user_agent":"$http_user_agent",' '"status":"$status"}'; access_log /yinzhengjie/softwares/nginx/logs/access.log my_access_json; error_log /yinzhengjie/softwares/nginx/logs/error.log; gzip on; include /yinzhengjie/softwares/nginx/conf/conf.d/*.conf; } [root@es101.yinzhengjie.com ~]#
[root@es101.yinzhengjie.com ~]# mkdir -v /yinzhengjie/softwares/nginx/conf/conf.d mkdir: created directory '/yinzhengjie/softwares/nginx/conf/conf.d' [root@es101.yinzhengjie.com ~]#
[root@es101.yinzhengjie.com ~]# vim /yinzhengjie/softwares/nginx/conf/conf.d/kibana.conf [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# cat /yinzhengjie/softwares/nginx/conf/conf.d/kibana.conf upstream kibana_server { server 127.0.0.1:5601 weight=1 max_fails=3 fail_timeout=60; } server { listen 80; server_name kibana.yinzhengjie.com; location / { proxy_pass http://kibana_server; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } } [root@es101.yinzhengjie.com ~]#
[root@es101.yinzhengjie.com ~]# /yinzhengjie/softwares/nginx/sbin/nginx -t nginx: the configuration file /yinzhengjie/softwares/nginx/conf/nginx.conf syntax is ok nginx: configuration file /yinzhengjie/softwares/nginx/conf/nginx.conf test is successful [root@es101.yinzhengjie.com ~]#
6>.启动nginx并访问webUI
[root@es101.yinzhengjie.com ~]# ss -ntl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:* LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 128 127.0.0.1:5601 0.0.0.0:* LISTEN 0 128 [::ffff:172.200.5.101]:9200 *:* LISTEN 0 128 [::ffff:172.200.5.101]:9300 *:* LISTEN 0 128 [::]:22 [::]:* [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# /yinzhengjie/softwares/nginx/sbin/nginx [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# ss -ntl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 0.0.0.0:80 0.0.0.0:* LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:* LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 128 127.0.0.1:5601 0.0.0.0:* LISTEN 0 128 [::ffff:172.200.5.101]:9200 *:* LISTEN 0 128 [::ffff:172.200.5.101]:9300 *:* LISTEN 0 128 [::]:22 [::]:* [root@es101.yinzhengjie.com ~]#
[root@es101.yinzhengjie.com ~]# >/yinzhengjie/softwares/nginx/logs/access.log [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# tail -100f /yinzhengjie/softwares/nginx/logs/access.log {"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.008,"upstreamtime":"0.008","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/","domain":"kibana.yinzhengjie.com","xff":"-","referer":"-","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"302"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":17566,"responsetime":0.025,"upstreamtime":"0.024","upstreamhost":"127.0.0.1:5601","http_host ":"kibana.yinzhengjie.com","uri":"/app/kibana","domain":"kibana.yinzhengjie.com","xff":"-","referer":"-","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"200"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.006,"upstreamtime":"0.004","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/bundles/app/kibana/bootstrap.js","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.007,"upstreamtime":"0.008","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/dlls/vendors.style.dll.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.010,"upstreamtime":"0.008","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/bundles/commons.style.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.011,"upstreamtime":"0.012","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/bundles/kibana.style.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.015,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/vega/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.018,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/timelion/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.019,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/tile_map/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.019,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/tagcloud/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.019,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/table_vis/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.019,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/region_map/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.018,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/metrics/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/metric_vis/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.019,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/markdown_vis/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.018,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/kibana/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.019,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/inspector_views/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.018,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/input_control_vis/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.021,"upstreamtime":"0.024","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/console/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.018,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/upgrade_assistant/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/cross_cluster_replication/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/remote_clusters/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/rollup/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.021,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/infra/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.018,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/index_lifecycle_management/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/index_management/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.016,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/license_management/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.016,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/canvas/style/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/maps/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.019,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/apm/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/watcher/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/ml/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.017,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/searchprofiler/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.018,"upstreamtime":"0.020","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/security/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.018,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/spaces/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.013,"upstreamtime":"0.012","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/monitoring/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.015,"upstreamtime":"0.016","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/css/plugins/graph/index.css","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.013,"upstreamtime":"0.012","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/built_assets/dlls/vendors.bundle.dll.js","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.002,"upstreamtime":"0.000","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/bundles/commons.bundle.js","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:34+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.002,"upstreamtime":"0.004","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/bundles/kibana.bundle.js","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:35+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.002,"upstreamtime":"0.000","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/translations/zh-cn.json","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:35+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":19210,"responsetime":0.009,"upstreamtime":"0.008","upstreamhost":"127.0.0.1:5601","http_host ":"kibana.yinzhengjie.com","uri":"/api/console/api_server","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"200"}{"@timestamp":"2020-06-22T07:47:35+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":114,"responsetime":0.007,"upstreamtime":"0.008","upstreamhost":"127.0.0.1:5601","http_host": "kibana.yinzhengjie.com","uri":"/api/spaces/space","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"200"}{"@timestamp":"2020-06-22T07:47:35+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":191,"responsetime":0.007,"upstreamtime":"0.008","upstreamhost":"127.0.0.1:5601","http_host": "kibana.yinzhengjie.com","uri":"/api/saved_objects/_find","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"200"}{"@timestamp":"2020-06-22T07:47:35+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.002,"upstreamtime":"0.004","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/bundles/ebdca7741674eca4e1fadeca157f3ae6.svg","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/bundles/commons.style.css","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:35+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":2,"responsetime":0.003,"upstreamtime":"0.004","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/api/security/v1/me","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"200"}{"@timestamp":"2020-06-22T07:47:36+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.004,"upstreamtime":"0.004","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/ui/fonts/open_sans/open_sans_v15_latin_600.woff2","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}{"@timestamp":"2020-06-22T07:47:36+00:00","host":"172.200.5.101","clientip":"172.200.0.1","size":0,"responsetime":0.004,"upstreamtime":"0.004","upstreamhost":"127.0.0.1:5601","http_host":"k ibana.yinzhengjie.com","uri":"/ui/fonts/open_sans/open_sans_v15_latin_700.woff2","domain":"kibana.yinzhengjie.com","xff":"-","referer":"http://kibana.yinzhengjie.com/app/kibana","tcp_xff":"","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","status":"304"}
三.登录认证实战案例
1>.安装apache的工具包
Ubuntu系列安装: apache2-utils CentOS系列安装: httpd-tools
[root@es101.yinzhengjie.com ~]# apt -y install apache2-utils Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libapr1 libaprutil1 The following NEW packages will be installed: apache2-utils libapr1 libaprutil1 0 upgraded, 3 newly installed, 0 to remove and 82 not upgraded. Need to get 259 kB of archives. After this operation, 865 kB of additional disk space will be used. Get:1 http://mirrors.aliyun.com/ubuntu bionic/main amd64 libapr1 amd64 1.6.3-2 [90.9 kB] Get:2 http://mirrors.aliyun.com/ubuntu bionic/main amd64 libaprutil1 amd64 1.6.1-2 [84.4 kB] Get:3 http://mirrors.aliyun.com/ubuntu bionic-security/main amd64 apache2-utils amd64 2.4.29-1ubuntu4.13 [83.8 kB] Fetched 259 kB in 0s (867 kB/s) Selecting previously unselected package libapr1:amd64. (Reading database ... 178121 files and directories currently installed.) Preparing to unpack .../libapr1_1.6.3-2_amd64.deb ... Unpacking libapr1:amd64 (1.6.3-2) ... Selecting previously unselected package libaprutil1:amd64. Preparing to unpack .../libaprutil1_1.6.1-2_amd64.deb ... Unpacking libaprutil1:amd64 (1.6.1-2) ... Selecting previously unselected package apache2-utils. Preparing to unpack .../apache2-utils_2.4.29-1ubuntu4.13_amd64.deb ... Unpacking apache2-utils (2.4.29-1ubuntu4.13) ... Setting up libapr1:amd64 (1.6.3-2) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Setting up libaprutil1:amd64 (1.6.1-2) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Setting up apache2-utils (2.4.29-1ubuntu4.13) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... [root@es101.yinzhengjie.com ~]#
2>.创建用户
[root@es101.yinzhengjie.com ~]# htpasswd -bc /yinzhengjie/softwares/nginx/conf/htpasswd.users yinzhengjie 2020 #创建第一个用户 Adding password for user yinzhengjie [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# htpasswd -b /yinzhengjie/softwares/nginx/conf/htpasswd.users jason 2020 #创建第二个用户 Adding password for user jason [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# cat /yinzhengjie/softwares/nginx/conf/htpasswd.users #可以查看保存创建的用户名及密码,虽然2个用户的密码均是"2020",但密码很明显是被"加盐"了.... yinzhengjie:$apr1$I3s1LxZi$ZHVbcxQTwlZgng5B1mjBC/ jason:$apr1$A9quSQGc$Hb.cSWwGTj5V3o6Xyv6HM0 [root@es101.yinzhengjie.com ~]#
[root@es101.yinzhengjie.com ~]# ll /yinzhengjie/softwares/nginx/conf/htpasswd.users -rw-r--r-- 1 root root 94 Jun 22 08:00 /yinzhengjie/softwares/nginx/conf/htpasswd.users [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# chmod 600 /yinzhengjie/softwares/nginx/conf/htpasswd.users [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# ll /yinzhengjie/softwares/nginx/conf/htpasswd.users -rw------- 1 root root 94 Jun 22 08:00 /yinzhengjie/softwares/nginx/conf/htpasswd.users [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]#
3>.修改nginx的配置文件
[root@es101.yinzhengjie.com ~]# vim /yinzhengjie/softwares/nginx/conf/conf.d/kibana.conf [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# cat /yinzhengjie/softwares/nginx/conf/conf.d/kibana.conf upstream kibana_server { server 127.0.0.1:5601 weight=1 max_fails=3 fail_timeout=60; } server { listen 80; server_name kibana.yinzhengjie.com; #添加认证信息 auth_basic "Welcome Acess Kibana WebUI"; auth_basic_user_file /yinzhengjie/softwares/nginx/conf/htpasswd.users; location / { proxy_pass http://kibana_server; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } } [root@es101.yinzhengjie.com ~]#
[root@es101.yinzhengjie.com ~]# /yinzhengjie/softwares/nginx/sbin/nginx -t nginx: the configuration file /yinzhengjie/softwares/nginx/conf/nginx.conf syntax is ok nginx: configuration file /yinzhengjie/softwares/nginx/conf/nginx.conf test is successful [root@es101.yinzhengjie.com ~]#
4>.重新加载nginx的配置文件并访问nginx的80端口
[root@es101.yinzhengjie.com ~]# ps -ef | grep nginx | grep -v grep root 15478 1 0 07:45 ? 00:00:00 nginx: master process /yinzhengjie/softwares/nginx/sbin/nginx nobody 15817 15478 0 08:06 ? 00:00:00 nginx: worker process nobody 15818 15478 0 08:06 ? 00:00:00 nginx: worker process [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# /yinzhengjie/softwares/nginx/sbin/nginx -s reload [root@es101.yinzhengjie.com ~]# [root@es101.yinzhengjie.com ~]# ps -ef | grep nginx | grep -v grep root 15478 1 0 07:45 ? 00:00:00 nginx: master process /yinzhengjie/softwares/nginx/sbin/nginx nobody 15825 15478 2 08:07 ? 00:00:00 nginx: worker process nobody 15826 15478 3 08:07 ? 00:00:00 nginx: worker process [root@es101.yinzhengjie.com ~]#
5>.登录成功即可看到Kibana的WebUI啦
当你的才华还撑不起你的野心的时候,你就应该静下心来学习。当你的能力还驾驭不了你的目标的时候,你就应该沉下心来历练。问问自己,想要怎样的人生。 欢迎加入基础架构自动化运维:598432640,大数据SRE进阶之路:959042252,DevOps进阶之路:526991186