Coralogix
Synopsis
Creates a Coralogix target that sends logs, metrics and traces to Coralogix over OTLP.
The target is the OTLP target with Coralogix's sign-in and limits built in. For IBM's Coralogix-based service, see IBM Cloud Logs.
Schema
- name: <string>
description: <string>
type: coralogix
pipelines: <pipeline[]>
status: <boolean>
properties:
url: <string>
api_key: <string>
application_name: <string>
subsystem_name: <string>
send_metrics: <boolean>
cumulative_to_delta: <boolean>
compression: <boolean>
timeout: <numeric>
batch_size: <numeric>
max_retries: <numeric>
retry_delay: <numeric>
disable_retries: <boolean>
debug:
status: <boolean>
dont_send_logs: <boolean>
Configuration
The following fields are used to define the target:
| Field | Required | Default | Description |
|---|---|---|---|
name | Y | Target name | |
description | N | - | Optional description |
type | Y | Must be coralogix | |
pipelines | N | - | Optional post-processor pipelines |
status | N | true | Enable/disable the target |
Connection
| Field | Required | Default | Description |
|---|---|---|---|
url | Y | - | The OTLP endpoint of the account's Coralogix domain, https://ingress.<domain>. See Domains. It must use https. In the console: |
api_key | Y | - | A Send-Your-Data API key. It can be plain text, an environment variable or a secret. In the console: |
application_name | Y | - | The application that Coralogix files the data under. In the console: |
subsystem_name | Y | - | The subsystem that Coralogix files the data under. In the console: |
send_metrics | N | true | Sends the readings of metric devices as metrics. false sends them as log records. In the console: |
cumulative_to_delta | N | false | true sends counters as deltas, as described in the OTLP page's Counters as deltas section. YAML only |
Domains
| Domain | OTLP endpoint |
|---|---|
| US1 | https://ingress.us1.coralogix.com |
| US2 | https://ingress.us2.coralogix.com |
| US3 | https://ingress.us3.coralogix.com |
| EU1 | https://ingress.eu1.coralogix.com |
| EU2 | https://ingress.eu2.coralogix.com |
| AP1 | https://ingress.ap1.coralogix.com |
| AP2 | https://ingress.ap2.coralogix.com |
| AP3 | https://ingress.ap3.coralogix.com |
| GOV1 | https://ingress.gov1.coralogixgov.us |
Performance
| Field | Required | Default | Description |
|---|---|---|---|
compression | N | true | Compresses each request with gzip. YAML only |
timeout | N | 30 | How long a request may take, in seconds |
batch_size | N | 1000 | The most events sent in one request |
max_retries | N | 3 | How many times a failed request is retried |
retry_delay | N | 1 | How long to wait before a retry, in seconds |
disable_retries | N | false | true makes one attempt per batch and never waits to retry it, whatever max_retries holds. A payload whose attempt fails is still redelivered, as on the OTLP page. In the console: |
Scheduling
See Scheduling and Pool Behavior for interval and cron fields shared by all targets.
Debug Options
The debug options work as on the OTLP page.
Settings That Do Not Apply
The target always sends OTLP over HTTP with protobuf, and it checks Coralogix's certificate against the system's trust store. So it ignores protocol, format, path, grpc_passthrough, address, port and tls.
It signs in itself, so it replaces an Authorization header set under headers.
The Console Form
The form has one step,
OTLP endpoint ;Send-Your-Data API key , with the Manual / Environment variable / Vault picker;Application name andSubsystem name , side by side;Readings as metrics , on by default;- the Performance fields.
Details
Where to Find the Values
- The domain is in the address of the account's Coralogix dashboard.
- A Send-Your-Data API key is on the API Keys page of the account's settings.
How the Target Signs In
The target sends the key as a bearer token, in the Authorization header of every request.
Application and Subsystem
Coralogix files every log, metric and trace under an application and a subsystem.
- The target adds
application_nameandsubsystem_nameto the resource of all data, as the attributescx.application.nameandcx.subsystem.name. - When a resource already has one of these attributes, the target keeps its value. So data that an application already names for Coralogix, such as the data that the OpenTelemetry device receives, stays where it was meant to go.
Counters
By default, the target sends counters unchanged, as Coralogix recommends. Set cumulative_to_delta to true to send them as deltas, as described in the OTLP page's Counters as deltas section.
Size Limit
Coralogix recommends requests of up to 2 MB, and refuses a request over 10 MB. The target keeps each request at or under 2,000,000 bytes, and splits a batch that would be larger. A single record over the limit is dropped and counted as dropped, with a warning in the Director log.
Time
Coralogix expects the time of a log within the last 24 hours.
Everything else works as on the OTLP page.
Examples
The EU2 Domain
The EU2 domain, with the key from a secret... | |
Troubleshooting
Configuration Errors
Director refuses a configuration it cannot use, with one of these messages:
url is required for Coralogixurl for Coralogix must be the https OTLP ingress of the account's domain, such as https://ingress.eu2.coralogix.comapi_key is required for Coralogixapplication_name is required for Coralogixsubsystem_name is required for Coralogixthe api_key of the Coralogix target resolved to nothing: check the environment variable or the secret it names:api_keyis set, but its environment variable or secret is empty.failed to resolve the api_key of the Coralogix target: ...: the environment variable or the secret could not be read.
Warnings While It Runs
[OTLP] dropped a record of N bytes: Coralogix refuses an OTLP logs request over 2000000 bytes, and the same formetricsandtraces: a single record was too large to send. In the Director log, the warning ends withtarget=and the name of the target.
Errors from Coralogix
The OTLP page's Troubleshooting entries apply. For Coralogix in particular:
status 401orstatus 403: the key is wrong, it is not a Send-Your-Data key, or it belongs to another domain than the endpoint.status 429: the account is over a Coralogix limit. The target retries.