Product Documentation

Configuring the NetScaler for Web Server Logging

Aug 07, 2014
To configure the NetScaler for web server logging you are required to only enable the Web Server Logging feature. Optionally, you can perform the following configurations:
  • Modify the size of the buffer (default size is 16 MB) that stores the logged information before it is sent to the NetScaler Web Logging (NSWL) client.
  • Specify the custom HTTP headers that you want to export to the NSWL client. You can configure a maximum of two HTTP request and two HTTP response header names.

To configure web server logging by using the command line interface

At the command prompt, perform the following operations:

  • Enable the web server logging feature.

    enable ns feature WL

  • [Optional] Modify the buffer size for storing the logged information.

    set ns weblogparam -bufferSizeMB <size>

    Note: To activate your modification, you must disable and then re-enable the Web server logging feature.
  • [Optional] Specify the custom HTTP header names that you want to export.

    set ns weblogparam [-customReqHdrs <string> ...] [-customRspHdrs <string> ...]

    Example
    > set ns weblogparam -customReqHdrs Accept-Encoding X-Forwarded -customRspHdrs Content-Encoding ETag

To configure web server logging by using the configuration utility

Navigate to System > Settings and perform the following operations:

  • To enable the web server logging feature, click Change Advanced Features and select Web Logging.
  • To modify the buffer size, click Change Global System Settings and under Web Logging, enter the buffer size.
  • To specify the custom HTTP headers to be exported, click Change Global System Settings and under Web Logging, specify the header values.