The / server directory was filled and when I checked I found that Tor did it:
/var/log/tor# du -sh *
As you can see, the debug.log.1 file size is 14G. How can I define a log rotation for Tor?
unless you are debugging tor, you shouldn’t log things more verbose than notice. It’s probably not useful to you, can contain sensitive information about what you were doing (in case someone manages to get access to your logs) and is, well, a lot more verbose.
Log rotation isn’t handled by tor. You should use something like
logrotate, and configure it to send SIGHUP to tor when tor needs to start writing into a new file. Or you can log to syslog or journald.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.