btrbk icon indicating copy to clipboard operation
btrbk copied to clipboard

[Question] How to store logs in journald

Open amigthea opened this issue 5 years ago • 3 comments

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?

amigthea avatar Oct 27 '20 10:10 amigthea

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.

digint avatar Nov 01 '20 20:11 digint

i run btrbk from cron and i need to send the log to journald

amigthea avatar Nov 05 '20 11:11 amigthea

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.

digint avatar Nov 11 '20 19:11 digint