I created a file called "savediskspace" , put in the script as mentioned previously, and tried to manually run logrotate, results below... ? root@server [~]# logrotate -s /var/lib/logrotate /etc/logrotate.conferror: savediskspace:2 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:3 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:4 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:5 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:6 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:7 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:8 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:9 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:10 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:11 lines must begin with a keyword or a filename (possibly in double quotes)error: savediskspace:12 lines must begin with a keyword or a filename (possibly in double quotes) --- On Fri, 5/24/13, spameden <[email protected]> wrote:
From: spameden <[email protected]> Subject: Re: logs files - which can i delete safely To: "BMan" <[email protected]> Cc: "[email protected]" <[email protected]> Date: Friday, May 24, 2013, 9:04 AM install bzip2 and bzip2 them. 2013/5/24 BMan <[email protected]> I see two files in the /kannel directory at the moment, core.log and smpp.log (1 GB size), would you mind replying with command line syntax to install logrotate? Once installed I'd like to setup a script to do this auto, 2nd time almost of disk space :-/ --- On Fri, 5/24/13, spameden <[email protected]> wrote: From: spameden <[email protected]> Subject: Re: logs files - which can i delete safely To: "BMan" <[email protected]>, "[email protected]" <[email protected]> Date: Friday, May 24, 2013, 8:05 AM No, this script is simply is for logrotate, you need to install logrotate before that and put that script into /etc/logrotate.d (might depend on your distro, but generally this is a location). If you need to archive your current logfile, I'd suggest stopping kannel, doing bzip2 *.log in your kannel's directory, with logrotate running this would be done automatically, also you can configure logs purging please include users @ kannel .org, so others would benefit too. 2013/5/24 BMan <[email protected]> Hey mate, thank you for quick reply. Basically my host is telling me at 92% drive usage. Would this script be run from typical command line exactly as written below? Sorry I"m not super technical with command lines (manager of the site for users). If your on skype might be easier to chat also, really appreciate any help you can give in walking me thru as a "newb" :-) skype is crucible_67 Thanks again, --- On Fri, 5/24/13, spameden <[email protected]> wrote: From: spameden <[email protected]> Subject: Re: logs files - which can i delete safely To: "Singularnet" <[email protected]> Cc: "BMan" <[email protected]>, "[email protected]" <[email protected]> Date: Friday, May 24, 2013, 7:49 AM here is a simple script for logrotate: /var/log/kannel/*.log { daily missingok rotate 365 compress delaycompress notifempty create 640 kannel adm sharedscripts postrotate killall -HUP bearerbox smsbox wapbox > /dev/null 2> /dev/null || true endscript } 2013/5/24 Singularnet <[email protected]> You can delete the log file without breaking the installation, however i recommend the logrotate script that come in the user guide in order to optimize space On May 24, 2013 9:35 AM, "BMan" <[email protected]> wrote: Hello guys, I have Kannel running successfully for over a year. We have built up a 1 Gig smpp.log file and I need to create a little extra space on the SMSC. What log files am I safe deleting to achieve the goal of more disk space, and NOT breaking the install. Thanks everyone in advance Bryan
