Skip to content
Enable systemd journal uploads
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
snap Modify the function in configure hook Nov 8, 2019
.gitignore
README.md Modify the function in configure hook Nov 8, 2019
build.sh Modify the function in configure hook Nov 8, 2019

README.md

Enable systemd journal uploads

Simple example snap to show how to send journal messages from a device to a remote journal server. This uses systemd-journal-upload.

Install the snap

sudo snap install logsync-james --devmode

Note that devmode is needed as the snap needs privileged interfaces. This can be avoided by using a brand store and a snap declaration assertion.

To connect the interfaces:

sudo snap connect logsync:log-observe
sudo snap connect logsync:config-logsync
snap connections logsync-james

Configure the snap

Set up log-sync over HTTP:

sudo snap set logsync-james url="http://example.com:19532"

Set up log-sync with custom certificates:

sudo snap set logsync-james url="https://example.com:19532"
sudo snap set logsync-james cert="/path/to/pem-encoded/certificate"
sudo snap set logsync-james key="/path/to/pem-encoded/certificate-key"
sudo snap set logsync-james ca=`LS0tLS1CRUdJTiBSU0EgUFJJVkFUR...`

The certificate settings (cert, key and ca) can be a path to a file or the base64-encoded file.

You can’t perform that action at this time.