Installation and configuration of ELK Elasticsearch __elk

Source: Internet
Author: User
1. Terminology explanation
Cluster: Cluster
Node: Nodes
Index: Database similar to MySQL
Type: Table similar to MySQL
Doccument: Content
Shard: Data fragmentation, Shard maximum default doccument number is 2,147,483,519
Replicas: Number of copies of data, also used when querying, not just backup

2. Installation

(a) Elasticsearch run dependent JRE,JRE installation reference: Ubuntu Install JRE

(b) Download address: https://www.elastic.co/, click on the top right corner downloads

(c) The version I choose is elasticsearch-2.2.0.tar.gz (d) Decompression: TAR-ZXVF elasticsearch-2.2.0.tar.gz (e) decompression can be used, the execution program in the bin directory
(f) Background operation:./elasticsearch-d
3. Check cluster health status Curl ' localhost:9200/_cat/health?v ' status has three kinds: green,yellow,red

4. Check cluster node Curl ' localhost:9200/_cat/nodes?v ' * Callout node is master node

5. Show All index curl ' localhost:9200/_cat/indices?v '
PRI: Shard, default 5
Rep: replicas, default 1

6. Create Delete index
Index:customer
Pretty: Display optimization, line wrapping
Create: Curl-xput ' Localhost:9200/customer?pretty '
Delete: Curl-xdelete ' Localhost:9200/customer?pretty '

7. About Configuration
Es_home/config directory:
Master configuration: Elasticsearch.yml
Log configuration: Logging.yml
Single-point elasticsearch configuration reference:

Cluster.name:bs2test
network.host:0.0.0.0
path.logs:/data/elasticsearch/logs
path.data:/data/ Elasticsearch/data


Summary: A lot of details, the main reader network configuration document
Official website Document: https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
Previous: Elk Logstash Installation and configuration Next: Elk Kibana Installation and configuration
End;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.