btrbk
btrbk copied to clipboard
[Question] How to store logs in journald
I'm a bit confused, there's something i'm missing or by default logs are only stored to file or syslog? How can i show them up in journald?
log messages are only logged to stderr. if you run btrbk from a systemd service, stderr automatically goes to the journal. You can configure a transaction_log, which then would write a file.
i run btrbk from cron and i need to send the log to journald
A quick search on google shows me that systemd-cat could be useful for that. I don't use systemd myself and can't help much more here, sorry.