![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
Quote:
It involves running the stats and clearing the logs everytime the stats run. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
i have man boobies
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
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
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Location: couch
Posts: 6,258
|
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Quote:
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 ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |