Updated on 2024-11-29 GMT+08:00

Overview

Basic access authentication is added so that other components can connect to Elasticsearch in security mode. In addition, Elasticsearch can connect to other components, such as MapReduce and Flume, using Kerberos authentication.

  • Basic access authentication is a simple but widely used authentication method. You are advised to run the esClient.sh encrypt command to encrypt the password when you use this method to connect Elasticsearch to other components. For details, see 6 in Using the Elasticsearch Client.
  • When you use basic access authentication to connect Elasticsearch to other components, perform operations as user root and ensure that JDK has been installed in the running environment.

Table 1 describes the open source components.

Table 1 Open source component connecting to Elasticsearch

Component

Description

Reference Link

Logstash

Logstash is an open-source, server-side data processing pipeline that integrates data from multiple sources, converts it, and then stores it to Elasticsearch in scenarios such as log search.

Connecting Elasticsearch to Logstash

Beats

Beats is a series of open-source Elastic products, including several beats. In this section, two of them (Filebeat and Metricbeat) are described.

  • Filebeat is a tool for forwarding log files. After the client is installed on the server, Filebeat monitors the log directory or specified log files, trace file changes, read the files repeatedly, and forwards the information to Elasticsearch.
  • Metricbeat periodically collects running indicators (including CPU, memory, hard disk, I/O read/write speed, and process) of the operating system and server, and sends the collected indicators and data to a specified output, for example, Elasticsearch, to monitor the server.

Interconnecting Elasticsearch with Beats (Filebeat)

Interconnecting Elasticsearch with Beats (Metricbeat)

Kibana

Kibana provides a graphical user interface (GUI) for you to build, query, and analyze Elasticsearch indexes.

Connecting Elasticsearch to Kibana

This section uses simple examples to describe how to connect open-source components to Elasticsearch in security mode. For details about principles and usage of open-source components, see the open-source community documentation.