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

What is the ELK installation like

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article introduces you how ELK installation is, the content is very detailed, interested friends can refer to, hope to be helpful to you.

One: installation environment:

1. Download and install VMware Workstation Pro 15

2. For the installation method of CentOS7.6 64-bit (centos-release-7-6.1810.2.el7.centos.x86_64), please see Baidu download address.

3. Download address of Elasticsearch 7.2.1

4. Download address of Logstash 7.2.1

5. Download address of Kibana 7.2.1

Second: preparatory work

1. After CentOS is installed and started, change to the directory where you need to install ELK, and execute the following command:

Wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.2.1-linux-x86_64.tar.gzwget https://artifacts.elastic.co/downloads/logstash/logstash-7.2.1.tar.gzwget https://artifacts.elastic.co/downloads/kibana/kibana-7.2.1-linux-x86_64.tar.gz

two。 When the download is complete, execute the following command in turn

Tar-zxvf elasticsearch-7.2.1-linux-x86_64.tar.gztar-zxvf kibana-7.2.1-linux-x86_64.tar.gztar-zxvf logstash-7.2.1.tar.gz

Three: install Elasticsearch

1. Go to the config directory under elasticsearch-7.2.1 and edit the elasticsearch.yml file (named cluster name and node name)

two。 Edit the jvm.options file (I commented out the original parameter, the new configuration parameter is 512m, in my virtual machine, if I do not modify this configuration, I will prompt "reject connection" at startup)

3. Use a non-root user to enter the bin directory of elasticsearch-7.2.1 and execute the following command:

. / elasticsearch

There may be a problem of unauthorized access to jvm.options files. You can authorize it with the following command:

Directory where chown-R xxx:xxx elasticsearch is located

4. The result is as follows: screenshot (startup completed):

5. Use the browser to open: 127.0.0.1virtual 9200 or create a new terminal window, and execute the command:

Curl 'http://localhost:9200/?pretty'

6. When you see the following, the installation startup is complete.

Four: install Logstash

1. Enter the config directory under Logstash, refer to part 4 above, configure jvm.options, and colleagues create a new logstash.conf file under the config directory.

The contents of the document are as follows:

Input {file {type = > "log" path = > "/ logs/*.log" start_position = > "beginning"} output {stdout {codec = > rubydebug {}} elasticsearch {hosts = > "127.0.0.1" index = > "log-% {+ YYYY.MM.dd}"}}

two。 Go back to the Logstash/bin directory and execute the command:

. / logstash-f.. / config/logstash.conf

3. The following information is output, which means that the startup is complete.

Five: install Kibana

1. Go to the config directory under Kibana and edit the kibana.yml file as follows:

two。 Go back to the Kibana/bin directory and execute the following command:

. / kibana

After the startup is complete, as shown in the figure.

10. Browser opens: 127.0.0.1purl 5601

About how the ELK installation is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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

Internet Technology

Wechat

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

12
Report