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

app journal-forwarder

Utility for forward systemd-journald logs to an HTTP endpoint

52 stable releases

new 1.101.0 Jul 2, 2024
1.97.0 Jun 26, 2024
1.81.0 Mar 27, 2024
1.63.0 Dec 19, 2023
0.0.0 Jul 1, 2022

#182 in Network programming

Download history 173/week @ 2024-03-14 709/week @ 2024-03-21 98/week @ 2024-03-28 180/week @ 2024-04-04 141/week @ 2024-04-11 204/week @ 2024-04-18 15/week @ 2024-04-25 2/week @ 2024-05-02 166/week @ 2024-05-09 13/week @ 2024-05-16 5/week @ 2024-05-23 115/week @ 2024-06-06 315/week @ 2024-06-13 213/week @ 2024-06-20 275/week @ 2024-06-27

918 downloads per month

Apache-2.0 and LGPL-2.1+

15KB
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–17MB
~272K SLoC