Skip to main content

Coralogix

Observability

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:

FieldRequiredDefaultDescription
nameYTarget name
descriptionN-Optional description
typeYMust be coralogix
pipelinesN-Optional post-processor pipelines
statusNtrueEnable/disable the target

Connection​

FieldRequiredDefaultDescription
urlY-The OTLP endpoint of the account's Coralogix domain, https://ingress.<domain>. See Domains. It must use https. In the console: OTLP endpoint
api_keyY-A Send-Your-Data API key. It can be plain text, an environment variable or a secret. In the console: Send-Your-Data API key
application_nameY-The application that Coralogix files the data under. In the console: Application name
subsystem_nameY-The subsystem that Coralogix files the data under. In the console: Subsystem name
send_metricsNtrueSends the readings of metric devices as metrics. false sends them as log records. In the console: Readings as metrics
cumulative_to_deltaNfalsetrue sends counters as deltas, as described in the OTLP page's Counters as deltas section. YAML only

Domains​

DomainOTLP endpoint
US1https://ingress.us1.coralogix.com
US2https://ingress.us2.coralogix.com
US3https://ingress.us3.coralogix.com
EU1https://ingress.eu1.coralogix.com
EU2https://ingress.eu2.coralogix.com
AP1https://ingress.ap1.coralogix.com
AP2https://ingress.ap2.coralogix.com
AP3https://ingress.ap3.coralogix.com
GOV1https://ingress.gov1.coralogixgov.us

Performance​

FieldRequiredDefaultDescription
compressionNtrueCompresses each request with gzip. YAML only
timeoutN30How long a request may take, in seconds
batch_sizeN1000The most events sent in one request
max_retriesN3How many times a failed request is retried
retry_delayN1How long to wait before a retry, in seconds
disable_retriesNfalsetrue 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: Disable retries

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, Coralogix settings:

  • OTLP endpoint;
  • Send-Your-Data API key, with the Manual / Environment variable / Vault picker;
  • Application name and Subsystem 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_name and subsystem_name to the resource of all data, as the attributes cx.application.name and cx.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...

targets:
- name: coralogix
type: coralogix
properties:
url: "https://ingress.eu2.coralogix.com"
api_key: "$secret{coralogix-send-your-data-key}"
application_name: "production"
subsystem_name: "network-devices"

Troubleshooting​

Configuration Errors​

Director refuses a configuration it cannot use, with one of these messages:

  • url is required for Coralogix
  • url for Coralogix must be the https OTLP ingress of the account's domain, such as https://ingress.eu2.coralogix.com
  • api_key is required for Coralogix
  • application_name is required for Coralogix
  • subsystem_name is required for Coralogix
  • the api_key of the Coralogix target resolved to nothing: check the environment variable or the secret it names: api_key is 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 for metrics and traces: a single record was too large to send. In the Director log, the warning ends with target= and the name of the target.

Errors from Coralogix​

The OTLP page's Troubleshooting entries apply. For Coralogix in particular:

  • status 401 or status 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.