Printable Version 
kb8030401 - Apache access log file takes too much disk space
   
Support
 
kb8030401 - Apache access log file takes too much disk space
  Description

Symptoms

When looking at the access log file of the Apache Web Server, you may notice that the file is taking a lot of disk space. And the file could take up to all of your disk free space in time.

Cause

When Macroscope installs the Apache Web Server, it does it with its default configuration. This configuration specifies that the Web server will log every access to every file it serves. Meaning that in time, the file will grow and if the server is accessed considerably, it will do so quickly.

Resolution

An easy workaround to this problem is to deactivate the Access log. To do so, follow these easy steps.

  1. Turn off the Apache Web server
    1. Select Start/Run.
    2. Type net stop Apache2 and press Enter.
  2. Edit the Apache configuration file
    1. Select Start/Run .
    2. Type notepad c:\progra~1\apache~1\apache2\conf\httpd.conf and press Enter.
      Note: The Apache installation path may differ if you choose a different path during installation.
  3. Set the CustomLog line as a comment
    1. Locate the line starting with CustomLog and insert the character "#" before it. If you wish to have the line searched by the application, you could use the Edit/Search menu of the notepad application. In the search popup, type CustomLog and make sure to search until you find a line that starts with the desired string as there may have other instances of it in the configuration file.
    2. After inserting the "#" character, you may save the file using the File/Save menu.
    3. Close the Notepad application.
  4. Delete the access log file
    1. Locate the C:\Program Files\Apache Group\Apache2\Log\Access.log file in Windows Explorerand delete it.
      Note: The Apache installation path may differ if you choose a different path during installation.
  5. Turn the Apache Web server on
    1. Select Start/Run .
    2. Type net start Apache2 and press Enter.
To verify if the procedure succeeded, you could have a look at the folder C:\Program Files\Apache Group\Apache2\Log; there should be no access.log file created.
Note: The Apache installation path may differ if you choose a different path during installation.

Applies To

Macroscope 4.7 with Apache installation
Macroscope 4.6 with Apache installation

Contact Us

If you need more information on this case, do not hesitate to contact us.