Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install ELK logs in Centos7

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to install ELK logs in Centos7. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

1. Pre-installation preparation

Operating system: Centos7 virtual machine 8G memory jdk8+

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

two。 Install ElasicSearchrpm-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 # snooping address

Http.port # listening port

# start the service

Systemctl start elasticsearch

Systemctl enable elasticsearch

# check

Netstat-anlpt | grep 9200

Curl http://127.0.0.1:9200

See the following to prove that the startup is successful

3. Install logstashrpm-ivh logstash-6.4.2.rpm

/ etc/logstash/logstash.yaml configuration file

Path.data

Path.config

Path.logs

# start (will be slow)

Systemctl start logstash

Systemctl enable logstashln-s / usr/share/logstash/bin/logstash / bin/

The following proves that the startup is successful

4. Install Kibanarpm-ivh kibana-6.4.2-x86_64.rpm

/ etc/kibana/kibana.yml configuration file

Server.port

Server.host

Elasticsearch.url

Kibana.index

# start

Systemctl start kibana

Systemctl enable kibana

Netstat-anlpt | grep 5601

Http://192.168.0.15:5601

The above is how to install ELK logs in Centos7. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report