Hi, Log Files are consuming more Disk Space, Can w...
# community-help
v
Hi, Log Files are consuming more Disk Space, Can we purge the log files, do we have any command for the same for linux docker self-hosting environment
j
Usually you'd use logrotate in a production environment
🙌 1
a
Sorry, old thread but is this all we’d need?
Copy code
/var/log/typesense/typesense.log {
        rotate 7
        daily
        missingok
        notifempty
        compress
        delaycompress
}
This doesn’t seem to start logging to a new file if there a command that needs to be sent to Typesense to tel lit to reload?
If there is no way to sighup the process then I guess we can use
copytruncate
?
j
Correct, you have to use
copytruncate
a
perfect, thanks
👍 1