This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
logtracker/README

23 lines
903 B
Plaintext
Raw Permalink Normal View History

2019-11-08 15:19:22 +01:00
Logtracker
===========
2020-09-11 16:03:35 +02:00
Logtracker is a django application that aggregates and displays log entries.
2020-07-03 17:44:32 +02:00
2020-09-11 16:03:35 +02:00
1. Server installation
2020-07-03 17:44:32 +02:00
2020-09-11 16:03:35 +02:00
Clients upload using ssl certificates, ensure x-http-ssl* headers are added by
upstream haproxy or nginx (see provided examples).
2020-09-11 16:03:35 +02:00
2. Clients installation
2020-09-11 16:03:35 +02:00
2.1 using curl
2020-10-30 14:29:47 +01:00
$ journalctl -o export -m --no-pager --cursor-file=~/.config/logtracker.cursor | curl -sS -X POST --cacert /etc/ssl/certs/ca-certificates.crt --cert $CERT --key $KEY --data-binary @- https://$HOST/upload
2020-09-11 16:03:35 +02:00
2.2
* using systemd-journal-upload:
** install systemd-journal-remote
** in order to upload containers journals, override systemd-journal-upload.service with : ExecStart = /lib/systemd/systemd-journal-upload -m --save-state
** in /etc/systemd/journal-upload.conf configure URL, ServerKeyFile, ServerCertificateFile and TrustedCertificateFile
** enable and start systemd-journal-upload.service