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 Mark Forums Read
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 12-06-2005, 02:29 PM   #1
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
Server log >2 gig how do I turn logging off? [pls help]

our gallery server log is slowing down due to 2gig+ .com.log files, I need to turn it off and the admin is gone, with my lil knowledge if del the file rebooted and its up and running again

removed the --log command from cron but its still running and getting pretty big and fast

so - pls - who can tell me how to turn this loggin off?

thanks

-Bob
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:31 PM   #2
CamRabbit
Confirmed User
 
Join Date: Mar 2002
Posts: 574
I use: rm *.*
CamRabbit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:31 PM   #3
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Not sure about turning the logging off, but can't you just roll the log file over to a backup and empty the current one?

:> logfile.log
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:34 PM   #4
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
Quote:
Originally Posted by psili
Not sure about turning the logging off, but can't you just roll the log file over to a backup and empty the current one?

:> logfile.log
its getting >2 gig in one day there must be a way to set up something without setting a cron to del that file every x hrs imho...
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:37 PM   #5
naitirps
Confirmed User
 
Join Date: May 2004
Location: ...
Posts: 761
if apache, open up httpd.conf and comment the error_log global or under virtual directory if your server is setup that way...
__________________
Programmer
ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:45 PM   #6
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
Quote:
Originally Posted by naitirps
if apache, open up httpd.conf and comment the error_log global or under virtual directory if your server is setup that way...
its the dutchteengalleries.com.log can I # that too in httpd.conf?
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:48 PM   #7
naitirps
Confirmed User
 
Join Date: May 2004
Location: ...
Posts: 761
yea, whereever you see your logfile name and error_log in front of it, comment the biatch and restart the webserver... should stop
__________________
Programmer
ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:52 PM   #8
drjones
Confirmed User
 
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
I wouldnt recommend turning off logging. If you ever experience any problems you'll be in the dark. Whether people are siphoning your bandwidth, trying to compromise your site, or theres just something wrong with the web server, you simply will not be able to find out without your logs. You can configure logrotate wich should go in and archive your log files everyonce in a while and start with fresh ones, its usually run by a cron job. Then if you need to you can just go delete the older log files if you like.
drjones is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:55 PM   #9
jayme_
Confirmed User
 
Industry Role:
Join Date: Jan 2005
Location: new york city
Posts: 158
cat /dev/null > logfile
jayme_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 02:56 PM   #10
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
hmm its set in modules on the server so I gotta check which module does that... damn thats gonna takes ages... think ill crontab a RM every day or so...

any other 2 cents?
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:04 PM   #11
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
Quote:
Originally Posted by drjones
I wouldnt recommend turning off logging. If you ever experience any problems you'll be in the dark. Whether people are siphoning your bandwidth, trying to compromise your site, or theres just something wrong with the web server, you simply will not be able to find out without your logs. You can configure logrotate wich should go in and archive your log files everyonce in a while and start with fresh ones, its usually run by a cron job. Then if you need to you can just go delete the older log files if you like.
im thought bout that but im no unix guru at all.. I know i can set logrotate to daily or weekly but archiving and start with fresh ones, if you can tell me what the command is id be gratefull forever
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:06 PM   #12
willysbirthday
Confirmed User
 
Join Date: Feb 2004
Location: balmer
Posts: 436
DO NOT REMOVE THE LOG FILE WHILE HTTPD is still running......

If you can't figure it out in httpd, i'd reccomend :

1) Stop apache, remove logfile, symlink from previous log area to /dev/null

2) Set a cron that Stops apache, removes logfile, restarts apache
__________________
oOooooooOOo
willysbirthday is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:10 PM   #13
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
Quote:
Originally Posted by willysbirthday
DO NOT REMOVE THE LOG FILE WHILE HTTPD is still running......

If you can't figure it out in httpd, i'd reccomend :

1) Stop apache, remove logfile, symlink from previous log area to /dev/null

2) Set a cron that Stops apache, removes logfile, restarts apache
thanks I learned that too

I know its a luxery problem but we had 10mbps now 20 and its on 20 8 outa 12 hours so basically too low already. Ive checked logs and its all affiliates pushing our galleries, not even movie, just pics.

Ive thought bout the crontab but that means stop start apache every day or so, maybe even a reboot, Id rather have logrotate handle that if possible... any ideas? thanks!
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:12 PM   #14
willysbirthday
Confirmed User
 
Join Date: Feb 2004
Location: balmer
Posts: 436
Daily call to a cron

apachectl stop
mv current_log date.log.txt
apachectl start


You'll never even notice it, and you'll get all your logs in nice little piles so you have them if need be....

Delete the really old ones.
__________________
oOooooooOOo
willysbirthday is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:13 PM   #15
Basic_man
Programming King Pin
 
Basic_man's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: Montreal
Posts: 27,360
Wait for the admin, it's the best solution :D
__________________
UUGallery Builder - automated photo/video gallery plugin for Wordpress!
Stop looking! Checkout Naked Hosting, online since 1999 !
Basic_man is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:16 PM   #16
High Quality
Confirmed User
 
Join Date: Feb 2002
Location: Vegas
Posts: 5,741
we delete our logs and run wusage every 6 hours. They are about 1.3GB every 6 hours. So I feel your pain. I dont konw how you my admin did it but I can hook you up with a great admin.

HQ
__________________

RecurCash.com - Averaging $38/sale with 60% revshare in the first 4 months alone!

Convert your TEEN traffic today @ better than 1:500 guaranteed. ICQ me: 18287590!
High Quality is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:20 PM   #17
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
Quote:
Originally Posted by High Quality
we delete our logs and run wusage every 6 hours. They are about 1.3GB every 6 hours. So I feel your pain. I dont konw how you my admin did it but I can hook you up with a great admin.

HQ
same here 2 gig in 7-8 hrs, we need to get either a better admin or a managed box thats 20 and ready to expend
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:22 PM   #18
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
Quote:
Originally Posted by willysbirthday
Daily call to a cron

apachectl stop
mv current_log date.log.txt
apachectl start


You'll never even notice it, and you'll get all your logs in nice little piles so you have them if need be....

Delete the really old ones.
how tricky is this doing this like 2-3 times a day? I mean chances the server wont put apache back online or so...
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:22 PM   #19
chaze
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Posts: 9,752
Just comment out the log linein the apache httpd.conf file right?

#lah dwhs.com.log

Something like that.
chaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:24 PM   #20
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
Quote:
Originally Posted by chaze
Just comment out the log linein the apache httpd.conf file right?

#lah dwhs.com.log

Something like that.
wish it was there, theyve set up the whole server with log config modules there are like 20-30 in the httpd so thatll take ages to find the right one triggering the log...

can you hit me up with a 20mpbs p4 price btw? bob AT dutchteencash DOT .com thanks

Last edited by DutchTeenCash; 12-06-2005 at 03:26 PM..
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-06-2005, 03:37 PM   #21
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
bump any other ideas?
DutchTeenCash 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
Thread Tools



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.