How To Disable Error Logging In Apache
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow disable apache logging windows the company Business Learn more about hiring developers or posting ads with us Stack
Apache Virtual Host No Logging
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Apache Disable Logging Virtual Host
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up disabling apache logging to access.log [closed] up vote 7 down vote favorite I've been reading about disabling the
Nginx Disable Access Log
logging of the apache server, which is crucial for me as I'm running huge tests on it, and it fills the disk. I've tried changing http.conf and directing stuff to /dev/null, but none of it worked, as most of it was the Error logging. Any idea anyone? Thanks linux apache logging share|improve this question asked Nov 25 '12 at 15:14 Alon_T 42331130 closed as off-topic by Matteo Tassinari, HansUp, user000001, Mike, Ruchira apache log levels Gayan Ranaweera Sep 2 '13 at 17:05 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault." – Matteo Tassinari, HansUp, user000001, Mike, Ruchira Gayan RanaweeraIf this question can be reworded to fit the rules in the help center, please edit the question. add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted In order to disable and turn off the Apache logging, just comment out the log lines in the Apache configuration file. Read more here. share|improve this answer answered Nov 25 '12 at 15:24 undone 6,22232756 Yeah I dag a little in the file and saw it..figured it would disable it ..thanks for your help –Alon_T Nov 25 '12 at 15:34 1 not really, "Commenting out that line does not disable the errorlog, it just reverts it to the apache2 default". read this. this solution helped me, yours didn't. –machineaddict Feb 5 at 23:22 add a comment| up vote 25 down vote Just comment the areas where logging was set. On, httpd.conf virtual hosts configurations (virtual.conf, domain.conf e
rate: 0% 3 Answers: oldestnewestmost voted 3 Depending how apache was ./configured, you may need to set the log to /dev/null to completely disable apache logrotate error logging. ErrorLog /dev/null --jeremy link answered 05 May '10, 16:16 apache loglevel jeremy ♦♦ 1.0k●1●5●16 accept rate: 37% 3 You need to edit your apache configuration file. It should customlog apache be in one of the following locations. /etc/apache2/apache2.conf or /etc/httpd/httpd.conf Edit this file and look for a line similar to the below; ErrorLog /var/log/apache2/error.log Comment out this line by http://stackoverflow.com/questions/13552312/disabling-apache-logging-to-access-log placing a '#' at the beginning like so. #ErrorLog /var/log/apache2/error.log Restart your apache daemon /etc/init.d/apache2 restart Note paths may differ depending on your distribution but should give you something to work off! link answered 05 May '10, 16:01 gjcwilliams 357●2●9 accept rate: 37% 1 But why would you want to? It contains valuable information to help you http://linuxexchange.org/questions/303/how-do-i-disable-apache2-errorlog manage your webserver. link answered 05 May '10, 18:20 codebunny 408●1●6 accept rate: 38% Agreed! I guess he has lots of errors that he wants to tuck away under the carpet :) (06 May '10, 06:23) gjcwilliams Your answer toggle preview community wiki Follow this questionBy Email:Once you sign in you will be able to subscribe for any updates hereBy RSS: Answers Answers and Comments Markdown Basics *italic* or _italic_ **bold** or __bold__ link:[text](http://url.com/ "Title") image?![alt text](/path/img.jpg "Title") numbered list: 1. Foo 2. Bar to add a line break simply add two spaces to where you would like the new line to be. basic HTML tags are also supported learn more about Markdown Prefer a Linux Forum? Android Forum Chrome OS Forum Tags: apache2 ×2 errorlog ×1 Asked: 05 May '10, 14:58 Seen: 11,328 times Last updated: 05 May '10, 18:20 Related questions Cannot set permissions on /srv folder in Debian about | faq | privacy | contact powered by OSQA First time here? Check out the FAQ! ×
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://superuser.com/questions/916726/disable-apache-logging-completely policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered https://www.howtoforge.com/community/threads/how-to-disable-apache-logging.52180/ Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody apache log can ask a question Anybody can answer The best answers are voted up and rise to the top Disable Apache logging completely up vote 1 down vote favorite I have an old server running online with over 250 sites on it I am not sure, but maybe too many logfiles in the apachelog are slowing down the server? Now since I don't need how to disable the Apache logs, How do I disable all logging completely? apache-http-server logging share|improve this question edited May 19 '15 at 15:47 asked May 19 '15 at 14:58 rubo77 88131742 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted I disabled all vhosts logging with: find /etc/apache2/sites-enabled/* -exec sed -i 's/#*[Cc]ustom[Ll]og/#CustomLog/g' {} \; find /etc/apache2/sites-enabled/* -exec sed -i 's/#*[Ee]rror[Ll]og/#ErrorLog/g' {} \; and commented out in /etc/apache2/apache2.conf #ErrorLog ${APACHE_LOG_DIR}/error.log and added ErrorLog /dev/null Restart apache gracefully: apache2ctl graceful I have a lot of logs in different places so I can watch the result with tail -n 1 -f /var/kunden/logs/*log /var/kunden/logs/*log /var/log/apache2/*log If you want to enable all logging into one file you can edit /etc/apache2/apache2.conf again and add those lines: ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log "%h %v %l %u %t \"%r\" %>s %b" and comment out #ErrorLog /dev/null share|improve this answer edited May 19 '15 at 16:02 answered May 19 '15 at 14:58 rubo77 88131742 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email
have several high traffic sites that put a considerable IO load on the sytem because of their access and error logging. I can't find any option in ISPConfig 3 to disable logging on a site or the entire server. How can this be done? karon, Apr 6, 2011 #1 till Super Moderator Staff Member ISPConfig Developer Edit the ispconfig.conf file in /etc/apache2/sites-available and comment out the customlog line, then restart apache. till, Apr 7, 2011 #2 karon New Member The line in question looks like this: CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" -d \"/etc/vlogger-dbi.conf\" /var/log/ispconfig/httpd" combined_ispconfigClick to expand... So if I comment this out, error logging (that's defined in the sites individual vhost files) will still be on, right? karon, Apr 7, 2011 #3 till Super Moderator Staff Member ISPConfig Developer yes. the line above is the access.log and not the error.log. till, Apr 7, 2011 #4 abubin New Member how do is disable the access.log only? I don't see the customlog in the vhost file for the specified domain. Using ispconfig 3.0.2.2 abubin, Aug 5, 2011 #5 till Super Moderator Staff Member ISPConfig Developer Just remove the line that is mentioned in post #3 from the apache config. It is in the ispconfig.conf file and not in a vhost as it is a global logging directive and not site specific. till, Aug 5, 2011 #6 cypriot New Member Found an easy way of doing this go into website settings and options in admin of Ispconfig, and add this two line into Apache Directives CustomLog /dev/null Combined AccessLog /dev/null Combined you will see all logs will stop i guess you guys can add tick box on the setting page of the site to add this two line auto ? Regards cypriot, Feb 2, 2013 #7 (You must