Skip to content

Instantly share code, notes, and snippets.

@kierdavis
Created April 18, 2022 09:43
Show Gist options
  • Save kierdavis/da35fb82e13d3dfabdabaa4dcac0d66f to your computer and use it in GitHub Desktop.
Save kierdavis/da35fb82e13d3dfabdabaa4dcac0d66f to your computer and use it in GitHub Desktop.
[sources.journal]
type = "journald"
[sinks.out]
type = "http"
uri = "https://localhost/"
inputs = ["journal"]
encoding.codec = "ndjson"
# Removing this line makes the panic go away:
encoding.only_fields = ["message", "timestamp", "host", "systemd_unit", "file"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment