Cribl Stream and Edge
Cribl

Cribl Stream and Edge

Route logs from Cribl Stream or Cribl Edge to Logit.io

Use Cribl Stream or Cribl Edge to route logs to your Logit.io Logs stack. Two Cribl destinations work today: the Splunk HEC destination, which sends to the Logit.io Splunk HEC endpoint, and the Webhook destination, which sends NDJSON to the HTTPS JSON API. Both authenticate with your stack's API key.

Logit.io HEC and the HTTPS JSON API do not accept gzip-compressed bodies. Cribl turns Compress on by default in both destinations, so switch it off. Logit.io HEC also does not support indexer acknowledgement.

Logs

Install integration

Please click on the Install Integration button to configure your stack for this source.

Check your key with curl

Send one event before you configure Cribl. HTTP 200 with {"text":"Success","code":0} means the API has queued it. The key and endpoint populate in the example when you sign in and select a stack.

curl -i "https://@logitApiEndpoint/services/collector/event" \
  -H "Authorization: Splunk @apikey" \
  -H "Content-Type: application/json" \
  --data-binary '{"event":{"id":"example-1","message":"Cribl connection test"}}'

Configure the destination

In Cribl Stream, select a Worker Group, then open Data > Destinations. In Cribl Edge, open More > Destinations. Select Add Destination and choose one of the two types below. Cribl documents the same destination settings for Stream and Edge.

Choose Splunk HEC. Cribl Splunk HEC destination reference (opens in a new tab)

SettingValue
Output IDA name such as logit
Load balancingOff
Splunk HEC endpoint(s)https://@logitApiEndpoint/services/collector/event
AuthenticationManual, with your stack's API key (@apikey) as the HEC Auth token. Use Secret to keep the key in Cribl's secret store.
Advanced Settings > CompressOff
Advanced Settings > Body size limit (KB)1024 to keep requests at about 1 MB
Advanced Settings > Events-per-request limit1000 (optional, matches the batch guideline)
Advanced Settings > Honor Retry-After headerOn (under Retries)

Use the event route, /services/collector/event. Do not enable indexer acknowledgement anywhere in the path. Logit.io HEC does not support it, /services/collector/ack or /services/collector/mint.

Select Save, then Commit & Deploy.

HEC enforces a 9,800,000-byte limit on the request body and on each event. It does not enforce an event count. See Splunk HEC for response codes, retries and how events appear in OpenSearch, including the optional Logstash filter that normalises envelopes.

Route data to the destination

Connect your Source to the new destination with QuickConnect, or with a Route in Cribl Stream. See Cribl's documentation for the steps in your product. Use a Pipeline to drop, mask or reshape fields before the data leaves Cribl.

Retries and duplicates

Cribl retries 5xx responses and a few 4xx codes, and drops other 4xx responses by default. The Logit.io APIs return HTTP 503 with Retry-After: 5 for a temporary fault. Turn on Honor Retry-After header so Cribl waits as asked.

An HTTP 503 partway through a batch can leave earlier events queued, so a retry can duplicate them. Add a stable, unique ID to each event and de-duplicate downstream.

Launch OpenSearch Dashboards to view your data

Launch OpenSearch Dashboards

How to diagnose no data in your stack

If you don't see data appearing in your stack after following this integration, take a look at the troubleshooting guide for steps to diagnose and resolve the problem or contact our support team and we'll be happy to assist.

Related guides