Centos7 install ELK log analysis

1. Preparation before installation

Reference: https://www.cnblogs.com/straycats/p/8053937.html

Operating system: Centos7 virtual machine 8G memory jdk8+

Software package download: deploy by rpm https://www.elastic.co/cn/downloads

2. Install ElasicSearch

rpm -ivh elasticsearch-6.4.2.rpm
rpm -ql elasticsearch  # default/usr/share/elasticsearch
# Default log directory/var/log/elasticsearch
/etc/elasticsearch/elasticsearch.yml configuration file
path.data  #Data directory
path.logs   #Log directory
network.host  #Listening address
http.port   #Listening port

# Start service
systemctl start elasticsearch
systemctl enable elasticsearch

# an examination
netstat -anlpt | grep 9200
curl http://127.0.0.1:9200

See the following content to prove that the startup is successful

3. Install logstash

rpm -ivh  logstash-6.4.2.rpm
/etc/logstash/logstash.yaml configuration file
path.data
path.config
path.logs
# start up(Will be slower)
systemctl start logstash
systemctl enable logstash
ln -s /usr/share/logstash/bin/logstash /bin/

The following proves that the startup is successful

4. Install Kibana

rpm -ivh kibana-6.4.2-x86_64.rpm
/etc/kibana/kibana.yml configuration file
server.port
server.host
elasticsearch.url
kibana.index

# start up
systemctl start kibana
systemctl enable kibana
netstat -anlpt | grep 5601

http://192.168.0.15:5601

Recommended Posts

Centos7 install ELK log analysis
CentOS7 builds ELK log centralized analysis platform
1.5 Install Centos7
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
CentOS7 install mysql
CentOS 7 install MySQL 5.6
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS 7 install Java 1.8
CentOS 6 install Docker
centos 6.5 install zabbix 4.4
Centos8 install Docker
CentOS install nodejs 8
CentOS6.5 install GNS3
centos 7.5 install mysql5.7.17
Centos7 install MySQL8.0-manual
CentOS7 install Kubernetes 1.16.3
VirtualBox install centos7
centos7 install lamp
Install centos7 and connect
Install Docker on Centos7
Centos7 install docker-18.x original
install LNMP on centos7.4
Centos7 YUM install MariaDB 10.0
CentOS 8 install ZABBIX4.4 guide