Hello,
syncthing starts with a systemd service
now it logs to stdout
how can I tell it to log in /var/log, have a filesize max 50 MB and to have only 2 old files ?
from man page
–logfile=/var/log/syncthing.log ?
–log-max-size= in which mode I say 50 MB ?
–log-max-old-files=2 to keep only 2 old files ?
Thanks
Yeah, you can experiment with those, or alternatively, just do -logfile=default
, which will rotate between 4 logfiles, each limited to 10 MBs. They will be saved in the Syncthing home folder.
2 Likes
I tried both, default and my solution but none of them works:
Nov 24 22:08:49 xxxxx systemd[1]: /etc/systemd/system/syncthing@rob.service.d/override.conf:1: Assignment outside of section. Ignoring.
Nov 24 22:08:49 xxxxx systemd[1]: /etc/systemd/system/syncthing@rob.service.d/override.conf:2: Assignment outside of section. Ignoring.
My error the reply before
tried =default and it works!
even if all the directories in ‘paths’ does not exists
1 Like