ADC

Configuring the NetScaler for web server logging

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> ...]

    > enable ns feature WL
    Done
    > set ns weblogparam -bufferSizeMB 60
    Done
    > show ns weblogparam
        Web Logging parameters:
        Log buffer size:  60MB
        Custom HTTP request headers: (none)
        Custom HTTP response headers: (none)
    Done
    > set ns weblogparam -customReqHdrs req1 req2 -customRspHdrs res1 res2
    Done
    > show ns weblogparam
        Web Logging parameters:
        Log buffer size:  60MB
        Custom HTTP request headers: req1, req2
        Custom HTTP response headers: res1, res2
    Done
<!--NeedCopy-->

To configure web server logging by using the GUI

  1. Navigate to System > Settings and perform the following operations:

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