ELK quick install for Centos7

yum -y install java-openjdk nano traceroute nmap

cat <<EOF | tee /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
EOF

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
yum clean all
yum makecache
yum -y install elasticsearch logstash kibana

cat <<EOF | tee /etc/kibana/kibana.yml
server.host: "0.0.0.0"
server.name: "kibana"
elasticsearch.hosts: "http://127.0.0.1:9200"
EOF

systemctl enable --now elasticsearch.service kibana logstash
curl -X PUT "http://127.0.0.1:9200/default_index"

About the Author

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步瞭解 Akismet 如何處理網站訪客的留言資料