Add Elasticsearch as a Receiver
You can use Elasticsearch, Kafka, and Fluentd as log receivers in KubeSphere. This tutorial demonstrates how to add an Elasticsearch receiver.
Prerequisites
-
You need a user granted a role including the permission of Cluster Management. For example, you can log in to the console as
admindirectly or create a new role with the permission and assign it to a user. -
Before adding a log receiver, you need to enable any of the
logging,eventsorauditingcomponents. For more information, see Enable Pluggable Components.loggingis enabled as an example in this tutorial.
Add Elasticsearch as a Receiver
-
Log in to KubeSphere as
admin. Click Platform in the upper-left corner and select Cluster Management.Note
If you have enabled the multi-cluster feature, you can select a specific cluster. -
On the navigation pane on the left, click Cluster Settings > Log Receivers.
-
Click Add Log Receiver and choose Elasticsearch.
-
Provide the Elasticsearch service address and port number.
-
Elasticsearch will appear in the receiver list on the Log Receivers page, the status of which is Collecting.
-
To verify whether Elasticsearch is receiving logs sent from Fluent Bit, click Log Search in the Toolbox in the lower-right corner and search logs on the console. For more information, read Log Query.
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere