Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-16-2003, 10:44 AM   #1
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Crontabs give me wood

Yo listen up

My logs, server logs not my dick they get massssssive

So can i make a crontab to wipeout the logs dir evryday at midnight (rm -r logs)and then have it redo the logs dir (mk dir) the minute after?
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 10:46 AM   #2
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Quote:
Originally posted by juicylinks
Yo listen up

My logs, server logs not my dick they get massssssive

So can i make a crontab to wipeout the logs dir evryday at midnight (rm -r logs)and then have it redo the logs dir (mk dir) the minute after?
Hit me up I have a solution for you.

It involves running the stats and clearing the logs everytime the stats run.
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 10:46 AM   #3
bringer
i have man boobies
 
bringer's Avatar
 
Join Date: Jul 2003
Location: van down by the river
Posts: 13,082
just stay up and do it every night manually
__________________
333-765-551
bringer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 10:47 AM   #4
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
Install AWStats and purge them after every update

My logs would build up to about 20-30gigs until I setup AWStats

http://awstats.sourceforge.net/

You can setup a cron to clear them but what's the point if you don't analyze them. Just turn them off
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 10:48 AM   #5
cyberpod
Confirmed User
 
Join Date: Mar 2003
Location: NE Pennsylvania
Posts: 172
that would depend on if you use the logs to generate stats...

If you do, just run the stats program more often like twice a day instead of once and the logs are only hlaf the size.. assuming yoiu delete the logs after processing...


if you don't use them, just turn them off...


there are many solutions for logging... can you be more specific about what you do with them?
cyberpod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 10:57 AM   #6
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Hows that for gratitude now he wants me to send him 2 jars of hair gel and a canoli to fix his stats
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 11:02 AM   #7
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
Quote:
Originally posted by JSA Matt
Install AWStats and purge them after every update

My logs would build up to about 20-30gigs until I setup AWStats

http://awstats.sourceforge.net/

You can setup a cron to clear them but what's the point if you don't analyze them. Just turn them off
Ive been using that script for almost 2 years, pretty damn good
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 11:03 AM   #8
EZRhino
Confirmed User
 
EZRhino's Avatar
 
Industry Role:
Join Date: Jul 2003
Location: couch
Posts: 6,258
Hit me up on ICQ and I'll send you a sample of my cron tabs
EZRhino is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 11:05 AM   #9
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Quote:
Originally posted by EZRhino
Hit me up on ICQ and I'll send you a sample of my cron tabs
psst he's all fixed it was a joke about the hair gel and canoli's
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 11:11 AM   #10
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Quote:
Originally posted by JFPdude


psst he's all fixed it was a joke about the hair gel and canoli's
JFP is the man
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 11:38 AM   #11
fletcher
Confirmed User
 
Join Date: Jan 2003
Location: Austin, TX
Posts: 698
Use "logrotate" to do it. You have to send Apache an HUP signal after you remove it to make it create a new logfile.
__________________
 
[email protected]
ICQ: 6411138
fletcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 11:39 AM   #12
EZRhino
Confirmed User
 
EZRhino's Avatar
 
Industry Role:
Join Date: Jul 2003
Location: couch
Posts: 6,258
EZRhino is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2003, 11:54 AM   #13
vending_machine
Confirmed User
 
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
Quote:
Originally posted by fletcher
Use "logrotate" to do it. You have to send Apache an HUP signal after you remove it to make it create a new logfile.
Or...

To save your logs in a compressed format:
Code:
gzip -c logfile > logfile.gz && cat /dev/null > logfile

the above code for Linux I believe is:
gzip -c logfile > logfile.gz && echo -n "" > logfile
The thing is that if you remove or rename your logfile, Apache will no longer be able to write log information as it has lost the pointer to the file. The way to get around it is to zero it out as in the example above.. That way you wont have to restart the webserver.
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.