Server log >2 gig how do I turn logging off? [pls help]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DutchTeenCash
    I like Dutch Girls
    • Feb 2003
    • 21684

    #1

    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

    ICQ 16 91 547 - SKYPE dutchteencash
    bob AT dutchteencash DOT com
    ... did you see our newest Sweet Natural Girl Priscilla (18)?
  • CamRabbit
    Confirmed User
    • Mar 2002
    • 577

    #2
    I use: rm *.*

    Comment

    • psili
      Confirmed User
      • Apr 2003
      • 5526

      #3
      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.

      Comment

      • DutchTeenCash
        I like Dutch Girls
        • Feb 2003
        • 21684

        #4
        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...

        ICQ 16 91 547 - SKYPE dutchteencash
        bob AT dutchteencash DOT com
        ... did you see our newest Sweet Natural Girl Priscilla (18)?

        Comment

        • naitirps
          Confirmed User
          • May 2004
          • 761

          #5
          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

          Comment

          • DutchTeenCash
            I like Dutch Girls
            • Feb 2003
            • 21684

            #6
            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?

            ICQ 16 91 547 - SKYPE dutchteencash
            bob AT dutchteencash DOT com
            ... did you see our newest Sweet Natural Girl Priscilla (18)?

            Comment

            • naitirps
              Confirmed User
              • May 2004
              • 761

              #7
              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

              Comment

              • drjones
                Confirmed User
                • Oct 2005
                • 908

                #8
                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.
                ICQ: 284903372

                Comment

                • jayme_
                  Confirmed User
                  • Jan 2005
                  • 158

                  #9
                  cat /dev/null > logfile

                  Comment

                  • DutchTeenCash
                    I like Dutch Girls
                    • Feb 2003
                    • 21684

                    #10
                    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?

                    ICQ 16 91 547 - SKYPE dutchteencash
                    bob AT dutchteencash DOT com
                    ... did you see our newest Sweet Natural Girl Priscilla (18)?

                    Comment

                    • DutchTeenCash
                      I like Dutch Girls
                      • Feb 2003
                      • 21684

                      #11
                      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

                      ICQ 16 91 547 - SKYPE dutchteencash
                      bob AT dutchteencash DOT com
                      ... did you see our newest Sweet Natural Girl Priscilla (18)?

                      Comment

                      • willysbirthday
                        Confirmed User
                        • Feb 2004
                        • 436

                        #12
                        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

                        Comment

                        • DutchTeenCash
                          I like Dutch Girls
                          • Feb 2003
                          • 21684

                          #13
                          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!

                          ICQ 16 91 547 - SKYPE dutchteencash
                          bob AT dutchteencash DOT com
                          ... did you see our newest Sweet Natural Girl Priscilla (18)?

                          Comment

                          • willysbirthday
                            Confirmed User
                            • Feb 2004
                            • 436

                            #14
                            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

                            Comment

                            • Basic_man
                              Programming King Pin
                              • Oct 2003
                              • 27360

                              #15
                              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 !

                              Comment

                              • High Quality
                                Confirmed User
                                • Feb 2002
                                • 5741

                                #16
                                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!

                                Comment

                                • DutchTeenCash
                                  I like Dutch Girls
                                  • Feb 2003
                                  • 21684

                                  #17
                                  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

                                  ICQ 16 91 547 - SKYPE dutchteencash
                                  bob AT dutchteencash DOT com
                                  ... did you see our newest Sweet Natural Girl Priscilla (18)?

                                  Comment

                                  • DutchTeenCash
                                    I like Dutch Girls
                                    • Feb 2003
                                    • 21684

                                    #18
                                    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...

                                    ICQ 16 91 547 - SKYPE dutchteencash
                                    bob AT dutchteencash DOT com
                                    ... did you see our newest Sweet Natural Girl Priscilla (18)?

                                    Comment

                                    • chaze
                                      Confirmed User
                                      • Aug 2002
                                      • 9775

                                      #19
                                      Just comment out the log linein the apache httpd.conf file right?

                                      #lah dwhs.com.log

                                      Something like that.
                                      Like the desert needs the rain
                                      We do fully manged WordPress, VPS, and Servers. Adult Host Pro https://adulthostpro.com/ Since 2001

                                      Comment

                                      • DutchTeenCash
                                        I like Dutch Girls
                                        • Feb 2003
                                        • 21684

                                        #20
                                        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, 01:26 PM.

                                        ICQ 16 91 547 - SKYPE dutchteencash
                                        bob AT dutchteencash DOT com
                                        ... did you see our newest Sweet Natural Girl Priscilla (18)?

                                        Comment

                                        • DutchTeenCash
                                          I like Dutch Girls
                                          • Feb 2003
                                          • 21684

                                          #21
                                          bump any other ideas?

                                          ICQ 16 91 547 - SKYPE dutchteencash
                                          bob AT dutchteencash DOT com
                                          ... did you see our newest Sweet Natural Girl Priscilla (18)?

                                          Comment

                                          Working...