Add Elasticsearch as receiver (aka Collector)

KubeSphere supports using Elasticsearch, Kafka and Fluentd as log receivers. This doc will demonstrate how to add an Elasticsearch receiver.

Prerequisite

Before adding a log receiver, you need to enable any of the logging, events or auditing components following Enable Pluggable Components. The logging component is enabled as an example in this doc.

  1. To add a log receiver:
  • Login KubeSphere with an account of platform-admin role
  • Click Platform -> Clusters Management
  • Select a cluster if multiple clusters exist
  • Click Cluster Settings -> Log Collections
  • Log receivers can be added by clicking Add Log Collector

Add receiver

  1. Choose Elasticsearch and fill in the Elasticsearch service address and port like below:

Add Elasticsearch

  1. Elasticsearch appears in the receiver list of Log Collections page and its status becomes Collecting.

Receiver List

  1. Verify whether Elasticsearch is receiving logs sent from Fluent Bit:
  • Click Log Search in the Toolbox in the bottom right corner.
  • You can search logs in the logging console that appears.