Developed for KSP Technology, these scripts parse Asterisk logs daily to determine the volume of calls received for a Customer's Job Line (an Announcement module available in their Main IVR). Generated logs are compressed and stored in /var/log/jobline for 1 year for reporting purposes.
Simply clone this Github repository to the target PBX and move the scripts and .logrotate files to the desired directory. The script names are self-explanitory and can be deployed as cron jobs to suit your schedule. Assuming the scripts are moved to the root ('/')
directory, consult the crontab file for an example configuration.