You are here

How to enable the Apache access logs

Affects version(s): 
5.x and newer

 The Apache access logs are not written by default. The content of the Apache log messages is redundant because the same information can be attained within the Airlock log system. On high load environments writing Apache log files may harm the performance and waste disk space.

To enable the Apache access logs, do the following steps:

  1. Login as root to the according Airlock system on console or with SSH
  2. Open the custom file "env.sh" with an editor:

    # vi /opt/airlock/custom-settings/ext-apache/env.sh

     

  3. Add the following line and save with wq!

    DO_LOG_ACCESS=TRUE

     

  4. Restart the Apache server:

    # systemctl restart airlock-ext-apache

    # sh /opt/airlock/ext-apache/etc/write-access-logs.sh

     

  5. After the restart, verify if the logs are created and written:

    # ls -al /home/log/access-logs/

Knowledge Base Categories: