FreePBX17 /var/log 96% full - how to clean this up?

I cannot find documentation for command to limit the size of this file

#df

Filesystem 1K-blocks Used Available Use% Mounted on
udev 8045592 0 8045592 0% /dev
tmpfs 1614596 1056 1613540 1% /run
/dev/mapper/pbxvg0-lvroot 2457952 1083288 1250560 47% /
/dev/mapper/pbxvg0-lvusr 13443376 2921824 9859484 23% /usr
tmpfs 8072964 324 8072640 1% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
/dev/sda2 965872 67504 831964 8% /boot
/dev/mapper/pbxvg0-lvhome 5071712 58888 4769856 2% /home
/dev/mapper/pbxvg0-lvsrv 5426040 28 5168628 1% /srv
/dev/mapper/pbxvg0-lvtmp 3245740 176 3076816 1% /tmp
/dev/mapper/pbxvg0-lvusrlocal 3113568 328 2949896 1% /usr/local
/dev/mapper/pbxvg0-lvvar 31332304 4249932 25640764 15% /var
/dev/mapper/pbxvg0-lvvarlog 51962564 47639996 2042448 96% /var/log
/dev/mapper/pbxvg0-lvvartmp 6019936 116 5710492 1% /var/tmp
/dev/mapper/pbxvg0-lvvarspool 332966132 1223088 316393204 1% /var/spool
/dev/sda1 997432 5984 991448 1% /boot/efi
/dev/mapper/pbxvg0-lvvarlogaudit 5890880 24 5586772 1% /var/log/audit
tmpfs 1614592 0 1614592 0% /run/user/1000

/var/log is a directory, not a file. It contains log files from a number of different things, many of them relating to the OS, rather than FreePBX.

Typically you run logrotate, from a cron script, but the details depend on the specific log file.

How much log file you keep is a policy decision depending on how far you need to go back in time to analyze a problem, and, again will depend on the particular log file.

Thanks for responding

You look in the directory and find which files are getting large, do a search to find out how important they are to you. If they are FreePBX related, come back here. If they are OS related, consult information on the OS.

Wish I knew how to look in the directory and list the files - I’m more of a Windose guy.