Log Size Questions

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Log Size Questions

Postby gatorback » Thu Apr 26, 2012 7:17 am

Log file name: /opt/var/log/asterisk/cdr-csv/master.csv
Log file size: 784,182,592 bytes
Disk size: 1GB:
Disk utilization:100%


Symptoms:
* Asterisk will stop running. Not sure if this is caused by immense log size filling up the 1GB disk?

Observations:
* Attempts to WinSCP file fail at 60%: thus unable to view log. What can be done to download the log?
* I could delete the log file and recreate and empty file >> touch master.csv. Will this create new problems?
Free Asterisk Book| Asterisk 1.8.18 on Optware ASUS RT-N16 | Linksys SPA2102 | G729a codec bandwidth
gatorback
Oldsterisk
 
Posts: 79
Joined: Fri May 20, 2011 1:48 pm

Re: Log Size Questions

Postby david55 » Thu Apr 26, 2012 7:23 am

There isn't a master.csv. Master.csv will be recreated the first time it is written to after it is removed or renamed.

As the file is less than 2GB, I would suggest any problem you are having in downloading it is on the Windows side.

Normally you would use something like logrotate to periodically rename this file, or you could simply turn off CDRs.
david55
Moves Like Spencer
 
Posts: 7738
Joined: Fri Sep 26, 2008 5:03 am

Re: Log Size Questions

Postby gatorback » Thu Apr 26, 2012 10:02 am

@david55: as usual, concise and helpful: Thank you.

david55 wrote:There isn't a master.csv.


Not sure I understand this or the intent of how to use this. Please clarify.

Master.csv will be recreated the first time it is written to after it is removed or renamed.


Very helpful. Thank you. I plan to zorch the file because it is so large.

As the file is less than 2GB, I would suggest any problem you are having in downloading it is on the Windows side.


Even more helpful. I used a linux box to SCP it to a SAMBA share for examination as to why it became so large.
Free Asterisk Book| Asterisk 1.8.18 on Optware ASUS RT-N16 | Linksys SPA2102 | G729a codec bandwidth
gatorback
Oldsterisk
 
Posts: 79
Joined: Fri May 20, 2011 1:48 pm

Re: Log Size Questions

Postby david55 » Thu Apr 26, 2012 10:10 am

gatorback wrote:
david55 wrote:There isn't a master.csv.


Not sure I understand this or the intent of how to use this. Please clarify.


LInux filesystems are case sensitive.
david55
Moves Like Spencer
 
Posts: 7738
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 20 guests