1.å¦ä½å¨CentOS 7ä¸å®è£
Elasticsearchï¼LogstashåKibana
2.kibana6.3.0已经制作好的源码可视化可以更改索引吗
3.Elasticsearch unassigned shard
å¦ä½å¨CentOS 7ä¸å®è£ Elasticsearchï¼LogstashåKibana
æ¨çELKæå¡å¨å°éè¦çCPUï¼RAMååå¨éåå³äºæ¨è¦æ¶éçæ¥å¿çå·ãå¨æ¬æç¨ä¸ï¼æ们å°ä½¿ç¨å ·æ以ä¸è§æ ¼çVPSç¨äºæ们çELKæå¡å¨ï¼
OS: CentOS 7
RAM: 4GB
CPU: 2
注ï¼æ ¹æ®èªå·±çæå¡å¨èµæºåé å个èç¹çèµæº
å®è£ Java 8
ElasticsearchåLogstashéè¦Javaï¼æ以æ们ç°å¨å°±å®è£ å®ãæ们å°å®è£ ææ°çæ¬çOracle Java 8ï¼å 为è¿æ¯Elasticsearchæ¨èççæ¬ã
注ï¼å»ºè®®æ¬å°ä¸è½½å®ææ°ççJDKï¼ç¶åä¸ä¼ å°æå¡å¨ç/usr/local/srcç®å½
# JDKä¸è½½å°åï¼
/technetwork/java/javase/downloads
ç¶å使ç¨æ¤yumå½ä»¤å®è£ RPMï¼å¦ææ¨ä¸è½½äºä¸åççæ¬ï¼è¯·å¨æ¤å¤æ¿æ¢æ件åï¼ï¼
yum -y localinstall jdk-8u-linux-x.rpm
# or
rpm -ivh jdk-8u-linux-x.rpm
ç°å¨Javaåºè¯¥å®è£ å¨/usr/java/jdk1.8.0_/jre/bin/javaï¼å¹¶ä»/usr/bin/java é¾æ¥ã
å®è£ Elasticsearch
Elasticsearchå¯ä»¥éè¿æ·»å Elasticç软件å ä»åºä¸è½¯ä»¶å 管çå¨ä¸èµ·å®è£ ã
è¿è¡ä»¥ä¸å½ä»¤å°Elasticsearchå ¬å ±GPGå¯é¥å¯¼å ¥rpmï¼
# /resources/wiki/start/topics/tutorials/install/
echo '[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
' | sudo tee /etc/yum.repos.d/nginx.repo
使ç¨yumå®è£ nginxåhttpd-tools
yum install nginx httpd-tools -y
使ç¨htpasswdå建ä¸ä¸ªå为âkibanaadminâç管çåç¨æ·ï¼å¯ä»¥ä½¿ç¨å ¶ä»å称ï¼ï¼è¯¥ç¨æ·å¯ä»¥è®¿é®Kibana Webçé¢ï¼
[root@linuxprobe ~]# htpasswd -c /etc/nginx/htpasswd.users kibanaadmin
New password: # èªå®ä¹
Re-type new password:
Adding password for user kibanaadmin
使ç¨vimé ç½®nginxé ç½®æ件
[root@linuxprobe ~]# egrep -v "#|^$" /etc/nginx/conf.d/kibana.conf
server {
listen ;
server_name kibana.aniu.co;
access_log /var/log/nginx/kibana.aniu.co.access.log main;
error_log /var/log/nginx/kibana.aniu.co.access.log;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
proxy_pass http://localhost:;
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;
}
}
kibana6.3.0已经制作好的可视化可以更改索引吗
上传网页的步骤:
获得主机空间的ftp账号和密码,如有数据库也要获得用户和密码;
确认网页的源码类型,基本的源码ping测试源码有html,asp,源码aspx,源码linux源码背诵php,源码地府系统源码jsp等,源码不同的源码类型对空间需求不一样;
下载ftp类软件,可以用安装版,源码也可以用绿色版,源码推荐用flashfxp;
打开软件,源码配置新的源码ftp链接,输入用户和密码,源码自由布局源码注意链接端口,源码有的源码bochs源码编辑是默认端口,有的不一样;
确认你的电脑可以联网,点击上传就可以上传网页了。
Elasticsearch unassigned shard
ESçdataèç¹å¼å¸¸å ³éï¼ä¼å¯¼è´å¯æ¬åºç°unassigned shardï¼è´ä½¿ç´¢å¼ç¶æå为yellowï¼çè³æ¯redã
ç»æä¸ï¼unassigned_shards对åºçæ°åå°±æ¯å½åé群ä¸å¼å¸¸åççæ°éã
ç»æä¸ï¼ç¬¬ä¸å为索å¼åï¼ç¬¬äºå为åçå·
å·²kibana为ä¾ï¼ESçæ¬ä¸º6.3.0ï¼ï¼
å设索å¼testç1å·åçæ¯unassigned shardï¼ç±..1.1_èç¹è°æ´å°..1.2_
è°æ´å®æåï¼é群ç¶æå°è°æ´ä¸ºGreen
å¦æè¿æ°ä¸å¥½ï¼éå°äºä¸»åçå¼å¸¸ï¼ä¸é¢çæ¹æ³ä¸ç®¡ç¨ï¼å¯ä»¥å ç¨éè¯çæ¹æ³å°è¯æ¢å¤
ä¸è¬dataèç¹å¼å¸¸éåºï¼è¯¥æ¹æ³é½è½è§£å³ã
è¥ä¸èµ·ä½ç¨ï¼å¯ä»¥å°è¯éæ°åé 主åçï¼ä¸è¿å¯è½ä¼æé¨åæ°æ®ä¸¢å¤±ã
å¦æè¿æ¯ä¸è½æ¢å¤ï¼é£ä¹ä¸»åçä¸çæ°æ®æ¯çç丢äºï¼åªè½éè¿éæ°åé ä¸ä¸ªæ°ç空åçï¼æ¥æ¢å¤ç´¢å¼ä½¿ç¨ã