How to change log location for error_log, httpheaders and soapmessages on Access Gateway

  • 7024697
  • 23-Jun-2020
  • 24-Jun-2020


Access Manager 4.4
Access Manager 4.5
Access Gateway


There might be some reasons to change the default location of the apache logs from /var/log/novell-apache2 to some other location.

One reason could be related to limited amount of space in this location or maybe your company has some guidelines on where logs need to be located in the file system.


The proper way to do this in Access Manager is the following:

 1)  Need to ensure the following Advanced options are added in Admin Console -> Edit AG Cluster -> Advanced Options

DumpHeaders on

NAGGlobalOptions DebugHeaders=on

DumpResponseHeaders on

DumpSoapMessages on

DumpHeadersFacility local6

DumpResponseHeadersFacility local6

2)  Next in a session to the Access Gateway, modify /etc/rsyslog.d/nam.conf

Change the following to match the new location desired:


user.*     -/var/log/novell-apache2/error_log

& ~

local6.*   -/var/log/novell-apache2/httpheaders

& ~

local5.*   -/var/log/novell-apache2/soapmessages

& ~

If wanted to change to /tmp/apache_logs for excample would change these lines to be:

user.*     -/tmp/apache_logs/error_log

& ~

local6.*  -/tmp/apache_logs/httpheaders

& ~

local5.*   -/tmp/apache_logs/soapmessages

& ~

** Ensure the directory structure exists for the new location and ensure the permissions match the original location of /var/log/novell-apache2


3)  The last step is to restart syslog service for changes to take effect and logs to start writing to new location.

SLES11|12:  rcnovell-syslog restart

Redhat 7.x: systemctl restart rsyslog