whats the safe way to delete or reload log files?

264 views
Skip to first unread message

steve

unread,
Sep 7, 2012, 7:48:29 PM9/7/12
to newfies...@googlegroups.com
whats the safest way?
just delete and reboot?
will reports also not show anymore if delete log files?

steve

unread,
Sep 7, 2012, 7:56:12 PM9/7/12
to newfies...@googlegroups.com
an example
/var/log/newfies/celery-newfies-node1.log: 1.8G
/var/log/newfies/newfies-django.log: 368M
/var/log/wtmp.1: 98M
/var/lib/mysql/ibdata1: 874M
/usr/share/plivo/tmp/plivo-cache.log: 418M
/usr/share/plivo/tmp/plivo-rest.log: 3.4G
/usr/share/plivo/tmp/plivo-outbound.log: 3.9G
/usr/local/freeswitch/log/cdr-csv/Master.csv: 122M
/root/mp3s.jbc: 3.5G
/root/data/oldcomputer.jbc: 1.0G
/tmp/redis.swap: 20G
/core: 370M

Areski

unread,
Sep 8, 2012, 6:13:35 AM9/8/12
to newfies...@googlegroups.com
I will advice to configure a log rotate for the newfies / plivo logs file.

http://stackoverflow.com/questions/3856434/how-to-enable-rotation-of-log-files-for-celeryd-with-djcelery

For log rotation on Ubuntu, if you have your celery log in
/var/log/celery/ celeryd.log you can use a configuration like the one
above to do weekly log rotation with /etc/logrotate.d/.

/var/log/celery/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
copytruncate
--
Kinds regards,
/Areski

----
Arezqui Belaid,
are...@gmail.com / +34650784355

Founder at Star2Billing (www.star2billing.com)
Author @ A2Billing (www.a2billing.net), @ Newfies-Dialer
(www.newfies-dialer.org), @ CDR-Stats (www.cdr-stats.org)
----
Twitter : http://twitter.com/areskib / LinkedIN :
http://www.linkedin.com/in/areski

steve

unread,
Sep 8, 2012, 12:37:49 PM9/8/12
to newfies...@googlegroups.com
ok so if it logrotates does it affect stats?

Areski

unread,
Sep 8, 2012, 1:06:55 PM9/8/12
to newfies...@googlegroups.com

I am not to understand your question.

steve

unread,
Sep 8, 2012, 1:07:43 PM9/8/12
to newfies...@googlegroups.com
Do the stats for example cdr stats read from log files or mysql
if i delete log files do i delete any reporting data

Areski

unread,
Sep 8, 2012, 8:15:09 PM9/8/12
to newfies...@googlegroups.com

The documentation explains intensively the mechanism and process to import CDRs.

Briefly, our logs files are just for tracing/logging purpose.

steve

unread,
Sep 8, 2012, 8:35:08 PM9/8/12
to newfies...@googlegroups.com

thanks
Reply all
Reply to author
Forward
0 new messages