ADC

Configuring the Citrix ADC for web server logging

To configure the Citrix ADC 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 Citrix ADC 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

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

> 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 

To configure web server logging by using the GUI

  1. Navigate toSystem>Settingsand perform the following operations:

    1. To enable the web server logging feature, clickChange Advanced Featuresand selectWeb Logging.
    2. To modify the buffer size, clickChange Global System Settingsand underWeb Logging, enter the buffer size.
    3. To specify the custom HTTP headers to be exported, clickChange Global System Settingsand underWeb Logging, specify the header values.
Configuring the Citrix ADC for web server logging