Configuring the NetScaler for web server logging
-
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
-
Enable the web server logging feature.
enable ns feature WL -
set ns weblogparam -bufferSizeMB <size>Note:To activate your modification, you must disable and then re-enable the Web server logging feature. -
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
To configure web server logging by using the GUI
-
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.
-