Skip to main content

Module loggly

Module loggly 

Source
Expand description

The loggly node — ships access logs to SolarWinds Loggly in batches via the HTTP/S bulk endpoint.

Ports the APISIX loggly plugin onto featherbit’s shared BatchSink and pooled outbound HTTP client. Each request builds a log entry and hands it to the sink with a non-blocking push; a background task POSTs the batch as newline-delimited JSON to https://<host>/bulk/<customer_token>/tag/<tags>/.

Deviation: APISIX’s loggly defaults to a syslog-over-UDP transport and only uses the HTTP bulk endpoint when its plugin-metadata.protocol is http/https. This port implements the HTTP/S bulk path only (the shape matching the other featherbit loggers); the RFC5424 syslog framing, severity/severity_map, and UDP transport are not implemented. severity is accepted for compatibility but ignored.

The node never mutates the request/response and never fails; place it in the response pipeline, after the upstream node.

Structs§

LogglyFlusher 🔒
Delivers batches by POSTing newline-delimited JSON to the Loggly bulk API.
LogglyPlugin
Batches access-log entries and POSTs them to the Loggly bulk endpoint.

Constants§

DEFAULT_HOST 🔒

Functions§

build_bulk_body 🔒
Serializes a batch as newline-delimited JSON, the format the Loggly bulk endpoint expects. Factored out for unit testing.
build_bulk_url 🔒
Builds the Loggly bulk endpoint URL for a token and tag set.