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

ELK-elasticsearch

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Official introduction: https://www.elastic.co/cn/products/elasticsearch

1. Deployment environment

1) install JDK

2) install elasticsearch

ELasticsearch's official site: https://artifacts.elastic.co/downloads/elasticsearch/

2. Configuration file

The following are the main configuration file paths:

/ etc/elasticsearch/elasticsearch.yml # configuration file for els

/ etc/elasticsearch/jvm.options # JVM related configuration, memory size, etc.

/ etc/elasticsearch/log4j2.properties # Log system definition

/ var/lib/elasticsearch # default location for data storage

To access other IP, you need to modify the elasticsearch.yml, as shown below:

3. Start the service

Start Elasticsearch

Systemctl enable elasticsearch.service

Systemctl start elasticsearch

Or

4. Combine with logstash

That is, the data obtained by logstash is stored in elasticsearch.

Input {redis {host = > "xxx.xxx.xxx.xxx" port = > 1234 password = > "12345678" db = > 1 data_type = > "channel" key = > "logstash"}} filter {} output {elasticsearch {hosts = > ["127.0.0.1 filter 9200"]} stdout {codec= > rubydebug}}

Note:

The above error indicates that if you want to switch users, you can run it by switching to an ordinary account.

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