Overview
Coralogix is a log management and analytics platform designed to simplify log data storage, analysis, and visualization. It offers various features that make it an excellent choice for storing server logs. Using Coralogix to store server logs can streamline your log management process, providing you with valuable insights into your server’s performance, identifying potential issues early on, and improving overall application and system reliability. Follow the steps below to configure log shipping to Coralogix.Step 1 - Credential Procurement
An API key is required to ship logs to Coralogix. Follow these steps to obtain the API key, store it as an Opaque Secret, and configure external logging.- From the Coralogix Dashboard, click the
Data Flowlink (in the header), then click theAPI Keyslink. - Generate and/or copy the
Send Your DataAPI Key. - From the Control Plane Console UI, click
Secretsfrom the left menu. - Click the
Newbutton. - Enter a
Namefor the secret, and selectOpaquefrom the Secret Type list. - Paste the string from step #2 into the content text box and click
Save. - This secret will be used when configuring logging using the UI Console or CLI.
Step 2 - Configure External Logging
External logging can be configured by using either the UI Console or CLI.Enable Logging using the UI Console
- From the Control Plane Console UI, click on
Orgin the left menu. - Click
External Logsin the middle context menu. - Select
Coralogixand fill out the required fields. - Select the Opaque secret created to authenticate to Coralogix. Refer to the credential procurement section to obtain and configure the necessary credentials.
- Click
Save. - After the configuration is complete, log entries will be available at Coralogix within a few minutes.
The cluster name will be the domain name that resolves when using the Coralogix dashboard.
Enable Logging using the CLI
The external logging configuration can be created / updated using the CLI’scpln org patch ORG_NAME -f FILE.yaml command.
Below is an example of an Org manifest (in YAML). Edit and save the YAML as a file and use it as an input to the CLI’s cpln org patch ORG_NAME -f FILE.yaml command.
Refer to the credential procurement section to obtain and configure the necessary credentials.
- Substitute:
ORG_NAME,OPAQUE_SECRET, and possibly the cluster.
Use the cluster URL that matches your Coralogix account. The cluster will be the domain name that resolves when using the Coralogix dashboard.
YAML