Moving asterisk log files to 2nd Hard Drive - Freepbx 13

I want to move the asterisk log folder off of our main hard drive and onto our 2nd hard drive so the 1st hard drive isn’t as stressed during a reload. I was thinking of making a symbolic link in /var/log/asterisk/ to point to the folder in the 2nd hard drive.

Is there a better freepbx config way of doing this or am I on the right track already?

I would modify your logrotate.d/asterisk file to use ‘datext’ and add an appropriate rsync statement to the postrotate script

1 Like