Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Configure (disable) log for specific account / domain

PatrickVeenstra shared this idea 8 years ago
Open Discussion

As mentioned here certain accounts / domains may have activity that doesn't require any logging. Doing so just increases the number of IOps, especially if you have several millions of requests/day. Having a setting that allows to disable the logging would be useful.

Replies (7)

photo
1

Thanks so much for your feedback! In your mind is this something that would be defined solely by server administrators, or would it be something you would want Resellers and cPanel users to be able to define as well?

photo
1

Personally I'm fine with just a server-level option.

photo
1

Yes me too. I just need it on the server-level. However I think putting it on the server level would still allow users to manually add logging to some domains using the Apache include editor in WHM to add some CustomLog statements.

By the way while CustomLog statements can be added using includes, they unfortunately can not be removed or blocked which is why we need the option to disable logs from cPanel.

photo
photo
1

How would you tell the difference between, robot, hacker, visitor ? Also, most people use the logs to see how a hacker got in.

photo
2

Nobody is forced to disable logging. I'm just asking for an option to do so.

photo
1

In our case, we use Google Analytics to measure our real visitors. And we have no need to measure robot traffic. Even though our business relies on search traffic, we don't need to know which search engines are crawling which pages on our sites.


When it comes to hackers, these are separate logs that measure logins and other things on the system and these we'd keep. Also we get many email warnings about logins and other security issues from our ConfigServer cPanel add-on. If we were hacked, we'd probably know.

photo
1

I think @Monorobase was asking a question related to the merged-in request that mentioned "By default, everything is logged including random requests from robots as well as potential hackers which in turn slows the server down."

photo
photo
3

and cpanelbenny, This is something I believe is good for any level, but the options should be overridden by the top system administrator.

photo
1

Dear friends, I think the ability to disable domlogs at any level would be an outstanding idea.


Given today's (and yesterday's) ever faster servers, its really easy for a domlog to grow too large in just a few hours. This will cause any server to crash, probably at a completely unexpected time, whenever the domlog gets too big. This absent feature of cPanel has caused us countless hours of downtime, lost revenues, and way too many hours of our time, our technician's time, and cPanel support's time. Its almost absurd how such a small missing feature has caused us so many problems. We have had this exact cPanel domglog issue for years now, so think that I know what I'm talking about.


Secondly, the workaround the cPanel currently suggests, but commenting out all instances of CustomLog in local copies of templates, is a flawed solution. The idea of making local templates in itself is a poor idea in my experience, because as soon as cPanel is updated the default templates will change, but any modified server will be left with potentially obsolete templates. I had just that problem recently. I modified my templates just a few months ago, but suddenly after updating to cPanel 60 my already out of date templates were causing Apache to crash when I wanted to change my PHP configuration.


Thirdly, yes I know domlogs are processed, and rotated or deleted regularly. But imagine high traffic, processing statistics can overload a server because huge domlogs just take too long to process. A cheap server these days could easily cause the domlogs to grow so large that they crash the server in just minutes or a few hours, even before the stats run gets to them. And imagine the stats run causes too much load and isn't able to finish before the next stats run, or before the domlogs grow too large.


Just a little background, no my server is not some giant machine. We are a tiny company that just runs normal PHP websites. That is all, nothing fancy. We have one VPS with 4 CPU cores. Yes our server gets millions of Apache hits in a few hours which cause the domlogs to fill up in less than one day, crashing the server every time. I don't see anything special about our configuration. In my opinion every single cPanel server would crash if they would ever get any serious traffic due to the domlogs getting to big. Its just the nature of technology these days, servers are ever more capable, and I hope that cPanel will make domlog accommodations for the higher capabilities of today's machines.


Thank you for your kind help!

photo
1

Domlogs "nolog" option should be optionally disabled at users level. It's a must! We have a high visiting site that generates ("dummy") logs quite fast.

photo
1

Yes! Yes! Yes! I turn off domlogs for one user by hand-commenting-it-out via httpd.conf because that's what the server hosts advised. This lasts less than two days before it is replaced and within 3-4 days of it coming back on, the server lags massively so I am reminded to go and do it again. It's essentially a chat-site run on php/AJAX. My site has suffered for years from this.

It doesn't make sense that anything, like logging, should be compulsory anyway, but irrespective of that, it is essential that it can be safely turned-off!

(pretty pleeease with cherries on top)

photo
1

Yes exactly! cPanel will rebuild the Apache configuration and your server will start logging again, lagging again and then if your traffic is high enough the logs soon get large enough to cause a guaranteed server crash.


To me its not only an annoyance, but also both a large security threat and a large stability threat due to the server crashes. Please add the option to disable all logging to WHM or cPanel. Thank you!

photo
photo
1

We really need this feature! It will really speed up servers and lower load. Good for the environment!

The current cPanel-recommended method of creating .local files for each Apache configuration file, and commenting out each instance of "CustomLog" is a stability and security risk because it leaves many servers with outdated configuration files after cPanel updates.

Additionally many high load servers with logging disabled through straightforward modification of the default templates might ** crash ** from too much load after cPanel's automatic Apache configuration file rewrites suddenly and unexpectedly turns on logging. This is because for many servers the logging itself might cause more load that actual page serving, and the servers simply can not handle log processing due to massive logs. Also for many high load servers the log files will become larger than the maximum possible log file size, even if log files are processed every hour, causing a fatal Apache crash. And of course these kinds of crashes seem to happen at 3 AM. :)

Leave a Comment
 
Attach a file