Is there a standard location for logging that both tailscaled and tailscale use? Is it (correctly) /var/log/daemon.log?
It seems that some state information is kept in /var/lib/tailscale/ . What is the purpose of the tailscaled.log.conf tailscaled.log1.txt tailscaled.log2.txt files therein?
What is the intended/expected location of logs on embedded systems, or systems that are not using systemd?
Logs from tailscaled appear in journalctl -u tailscaled
Telemetry to upload is buffered in /var/lib/tailscale/files.
/var/lib/tailscale/tailscaled.log.conf is the logId for the telemetry being uploaded, every node generates a random ID.
tailscaled.log1.txt and tailscaled.log2.txt are not used any more, though still present as tailscaled handles being updated from the very old versions which did. Nowadays they’ll always be empty.
mtime on them is still constantly getting updated, causing useless writes to the underlying block device (even with lazytime mount option). I’ve had to relocate them to /run/tailscale using TS_LOGS_DIR env var in /etc/default/tailscaled.
% tailscale version
1.74.1
tailscale commit: ccd6bf2f4ee6421c23789b64e6e63c2ccbe87e08
other commit: 8fce4ce11275fcae33595c47076414129514e4ee
go version: go1.23.1