Hello great minds, please how do I reduce the space my Asterisk logs takes on my server because right now I can no longer even copy a database to other services i’m running on the server.
log less /etc/logger.conf
On Fri, Jul 18, 2025 at 10:42 AM Wenzo via Asterisk Community <notifications@asterisk.discoursemail.com> wrote:
Wenzo
July 18Hello great minds, please how do I reduce the space my Asterisk logs takes on my server because right now I can no longer even copy a database to other services i’m running on the server.
Visit Topic or reply to this email to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, click here.
you mean running log less /etc/logger.conf will reduce the logs? please could you explain better
I believe they mean modify the contents of the file (which I think should be /etc/asterisk/logger.conf) to specify less detailed logging. You would need to decide how much logging you required, so we can’t tell you exactly what to set. You don’t have to log anything, but if you don’t, you’ll have difficulty getting help when things go wrong.
However, I suspect your real problem may be that you are not managing the logs properly outside of Asterisk. Typically you would run a cron job, possibly using the logrotate utlity, to split the file, and to delete older copies. This is something that any Linux system manager should be familiar with, as it extends to all the services run on the machine.
Asterisk has CLI commands that ensure that ensure that Asterisk closes the old file and opens the new one, after a split.
Worked examples can be found at Automatically rotate log file