Skip to content

v0.2.1

Choose a tag to compare

@lance0 lance0 released this 05 Dec 19:44
· 7 commits to master since this release

v0.2.1 - HTTP Output Sink

Added

HTTP Output Sink - POST logs to HTTP/HTTPS endpoints with enterprise-ready features:

  • Batching: Configurable batch size and flush timeout
  • Retries: Exponential backoff on 5xx, 429, and connection errors
  • Formats: JSON array, NDJSON, or plain text
  • Headers: --header / -H CLI option for custom headers (auth tokens, etc.)
  • Dead-letter: Failed batches saved to JSONL file for debugging/replay

URL Configuration:

Basic

logsynth run nginx --output http://localhost:8080/logs

With parameters

logsynth run nginx --output "http://localhost:8080/logs?batch=50&timeout=10&format=ndjson"

With auth header

logsynth run nginx --output http://localhost:8080/logs -H "Authorization: Bearer token"

URL Parameters:

Parameter Default Description
batch 100 Batch size before flush
timeout 5 Seconds before timeout flush
format json json, ndjson, or text
retries 3 Max retry attempts

Stats

  • 29 new tests (135 total)
  • Full test coverage for batching, retry logic, and dead-letter functionality