#logs #http #journald #forward #endpoint #url #systemd-journald

app journal-forwarder

Utility for forward systemd-journald logs to an HTTP endpoint

46 stable releases

new 1.89.0 May 11, 2024
1.81.0 Mar 27, 2024
1.63.0 Dec 19, 2023
1.53.0 Jul 26, 2023
0.0.0 Jul 1, 2022

#231 in Network programming

Download history 5/week @ 2024-01-28 1/week @ 2024-02-18 12/week @ 2024-02-25 161/week @ 2024-03-03 249/week @ 2024-03-10 569/week @ 2024-03-17 307/week @ 2024-03-24 210/week @ 2024-03-31 39/week @ 2024-04-07 164/week @ 2024-04-14 183/week @ 2024-04-21 7/week @ 2024-04-28 134/week @ 2024-05-05

490 downloads per month

Apache-2.0 and LGPL-2.1+

14KB
201 lines

journal-forwarder

A simple script to forward journald logs over HTTP somewhat reliabily.

Configuration

All the configuration is passed in as environment variables the only required value is JF_URL which is the url to send the logs to. If you prefer you can set JF_URL_SRC instead to read the URL out of a file.

All the other configuraion options are at the top of the source file.

Requirements

On nixos the following packages are required:

  • coreutils
  • curl
  • gnused
  • jq
  • systemd
  • utillinux (butilt with systemd support)

Questions

Open an issue so that I can answer and add docs.

Dependencies

~6–18MB
~282K SLoC