How to Change NetScaler newnslog Compression LogSize and LogFileCnt

How to Change NetScaler newnslog Compression LogSize and LogFileCnt

book

Article ID: CTX226820

calendar_today

Updated On:

Description

This article describes how to change NetScaler newnslog compression log size and log file numbers.


Instructions

Complete the following steps to change NetScaler newnslog compression log size and log file numbers:

  1. Change the LOGSIZE to the desired file size and LOGFILECNT to the desired file number using the following commands:

    # vi /var/nslog/nsagg.conf 
    COMMAND=START
    LOGSIZE=600m  
    LOGFILECNT=200    
    LOGTIME=172800 

    Note: For NetScaler MPX, the default logsize is 600m and logfilecnt is 200. For NetScaler VPX, the default logsize is 100m and logfilecnt is 100.

  2. Modify /netscaler/nslog.sh file correspondingly.
    Change the NSLOG_SIZE to be the same as LOGSIZE and NSLOG_END_FILENO to be the same as LOGFILECNT in nsagg.conf:

    if [ $NSVPX -ge 1 ]
    then
    # On VPX we have less memory and hard disk space
    NSLOG_SIZE=100m
    NSLOG_END_FILENO=100
    else
    NSLOG_SIZE=600m # Is 1Gb really too big?  
    NSLOG_END_FILENO=200
    fi
    DEFAULT_SIZE_TO_DELETE=4100000 # leave just over 4GB for core files (1k blocks)
    [ -f $NSCONFIG/.developer ] && DEFAULT_SIZE_TO_DELETE=10000
    SIZE_TO_DELETE=$DEFAULT_SIZE_TO_DELETE
    LOGCONF=${NSLOG_DIR}/nsagg.conf
  3. Restart nsaggregatord:

    #killall -USR1 nsaggregatord

Issue/Introduction

This article describes how to change NetScaler newnslog compression log size and log file numbers.