Log Delete

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Log Delete

Postby gmcust3 » Tue Apr 09, 2013 2:08 am

I am planning to delete all log files daily under :

/var/log/asterisk/messages
/var/log/asterisk/astguiclient
/etc/asterisk/logger

Safe to delete them ?
GoAutoDial CE
VERSION: 2.4-309a
BUILD: 110430-1642
No other software installed on the box.
I've read the manager manual.
gmcust3
 
Posts: 1148
Joined: Sat Oct 24, 2009 1:15 pm

Re: Log Delete

Postby DomeDan » Tue Apr 09, 2013 2:35 am

if you mean /etc/asterisk/logger.conf then no, thats a config-file, no point deleting that one

You can add this to crontab to delete 2 days old logs every night at 00:28 & 00:29
Code: Select all
### remove old vicidial logs and asterisk logs more than 2 days old
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f

this works if you have logrotate running.

dont you have anything that deletes old logs in your system now?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Log Delete

Postby gmcust3 » Tue Apr 09, 2013 2:39 am

Not right Now.
GoAutoDial CE
VERSION: 2.4-309a
BUILD: 110430-1642
No other software installed on the box.
I've read the manager manual.
gmcust3
 
Posts: 1148
Joined: Sat Oct 24, 2009 1:15 pm

Re: Log Delete

Postby gmcust3 » Tue Apr 09, 2013 2:42 am

I have

Code: Select all
### remove old vicidial logs and asterisk logs more than 2 days old
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +4 -print | xargs rm -f
GoAutoDial CE
VERSION: 2.4-309a
BUILD: 110430-1642
No other software installed on the box.
I've read the manager manual.
gmcust3
 
Posts: 1148
Joined: Sat Oct 24, 2009 1:15 pm

Re: Log Delete

Postby DomeDan » Tue Apr 09, 2013 2:48 am

see, you had it there already :P
do you have logrotate running? do a "ls -lh /var/log/astguiclient/" to easy find out, logrotate renames files to something.2013-04-08
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Log Delete

Postby DomeDan » Wed Apr 10, 2013 8:08 am

have you come to any conclusions?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 75 guests