Skip to main content

loggly

loggly

Builds a JSON access-log entry for each request/response and ships accumulated batches to SolarWinds Loggly. Each batch is POSTed as newline-delimited JSON to https://<host>/bulk/<customer_token>/tag/<tags>/. Place this node in the response pipeline, after the upstream node.

:::note Limitations Only the HTTP/S bulk path is implemented; RFC5424 syslog framing, severity/severity_map, and a syslog-over-UDP transport are not. severity is accepted for config compatibility but ignored. :::

Configuration

KeyTypeDefaultDescription
customer_tokenstring— (required)Loggly customer token; forms part of the bulk URL.
tagsarray[featherbit]Loggly tags, comma-joined into the URL and the X-LOGGLY-TAG header.
hoststringlogs-01.loggly.comLoggly host; a bare host gets an https:// scheme.
severitystringINFOAccepted for compatibility; ignored in HTTP bulk mode.
ssl_verifybooltrueVerify TLS certificates.
timeoutinteger (ms)5000Whole-call deadline per flush.
log_formatobjectCustom flat entry of name -> "$var template".
include_req_bodyboolfalseAdd the request body to the default entry.
include_resp_bodyboolfalseAdd the response body to the default entry.
batch_max_sizeinteger1000Flush when the buffer reaches this many entries.
inactive_timeoutinteger (s)5Flush after this idle period.
buffer_durationinteger (s)60Flush when the oldest buffered entry is this old.
max_retry_countinteger0Retries after a failed flush before dropping the batch.
retry_delayinteger (s)1Delay between retries.
max_pending_entriesinteger10000Queue capacity; entries are dropped with a warning when full.
- id: access-log
type: loggly
config:
customer_token: 00000000-0000-0000-0000-000000000000
tags: [featherbit, prod]
ssl_verify: true
batch_max_size: 1000

Behavior

The node is a pure passthrough: it never modifies the context and never fails, so only its success port is ever taken. push is fire-and-forget and never blocks the request path — when the queue is full, entries are dropped with a tracing::warn!. A batch is serialized as newline-delimited JSON (the Loggly bulk format) and POSTed to the bulk endpoint. Delivery, batching, timing, and retries all run on a background task.