How to Disable Logs?

Is there a way to disable all system and asterisk logs? I’m running FreePBX on a thin client with 4GB flash storage, and am trying to conserve as much disk space as possible. I noticed it seems like it is slowly being eaten up by the log files. If I need to diagnose an issue, I can probably just enable them again. I have everything pretty much setup how I want it, and I don’t want to have to worry about disk space running out over time.

In Settings -> Asterisk Logfile Settings, you can adjust what gets logged.

The config files in /etc/logrotate.d control how many days are kept, etc.
Unless something is wrong, all logs are rotated (7 days for Asterisk and FreePBX) so the disk shouldn’t fill up.

However, a 64 GB USB flash drive or SD card is only about $10, useful for recording calls, voicemail storage, packet captures and of course logs.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.