ELK安裝使用

2021-09-03 03:15:18 字數 1266 閱讀 6542

6.42版本為例

一、安裝elasticsearch

2、修改配置檔案,結尾新增兩個配置

http.cors.allow-origin: "*"3、啟動(不能用root使用者,必須新建立乙個使用者並授權)

nohup ./bin/elasticsearch &
4、安裝ik(非必須)

1、安裝:

./bin/elasticsearch-plugin install

2、啟動

5、訪問:http://localhost:9200/

二、安裝kibana

2、修改配置檔案

cd kibana-6.4.2-linux-x86_64/config

vi kibana.yml

server.host: 本機ip

3、kibana沒有許可權管理功能,可借助nginx驗證許可權(非必須)

建立密碼檔案

htpasswd -c /usr/local/nginx/db/passwd.db user先安裝httpd, user是使用者名稱,接著輸入兩次一樣的密碼。然後配置到nginx中

server 

}

auth_basic_user_file路徑是上面建立的密碼檔案

4、啟動

nohup ./bin/kibana &

三、安裝logstash

2、建立配置檔案

cd logstash-6.4.2

mkdir conf_logs

cd conf_logs

vi test.conf

input 

}output

} elasticsearch "

}}

3、啟動

nohup ./bin/logstash -f conf_logs/test.conf &

ELK安裝使用

安裝版本 elasticsearch 2.4.6 logstash2.4.0 kibana4.6.1 啟動前先關閉防火牆 systemctl stop firewalld tar xvf elasticsearch 2.4.6.tar.gz 由於安全原因,es不能用root使用者安裝,所以建立乙個使...

ELK集群安裝及簡單使用

192.168.1.105 es 2 elk 目錄 192.168.1.108 es 1 logstash kibana mydata elk 192.168.1.106 es 3 elk 一般我們需要進行日誌分析場景 直接在日誌檔案中 grep awk 就可以獲得自己想要的資訊。但在規模較大的場景...

elk7 9 2使用rpm安裝

環境 linux wget wget wget 3 安裝jdk和elk rpm ivh jdk 11.0.9 linux x64 bin.rpm rpm ivh elasticsearch 7.9.2 x86 64.rpm rpm ivh kibana 7.9.2 x86 64.rpm rpm iv...