How do I configure a Smarts domain to use a custom log file name
search cancel

How do I configure a Smarts domain to use a custom log file name

book

Article ID: 332262

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

Symptoms:

  • Smarts domains with custom domain log file name will attach the '_en_US_UTF-8' to the log fie name when the log file is rolled.  
  • Smarts will not retain the custom name of the domain log showing when rolling the log file and will add '_en_US_UTF-8' to the file name when domain is started with --output=<filename>.
  • Smarts reverts to <Domain Name>_en_US_UTF-8.log and  <Domain Name>_en_US_UTF-8.bak when rolling the logs.

 

Environment

All Supported Smarts releases

Cause

The SM_LOG_NAME_CUSTOM=TRUE needs to be added to the runcmd_env.sh file

Resolution

To resolve this issue the following line needs to the added to the runcmd_env.sh file and the domain restarted:

SM_LOG_NAME_CUSTOM=TRUE

The runcmd_env.sh file is located in the Smarts installation directory, /local/conf sub-directory: <Smarts_Install_Dir>/smarts/local/conf/

The log file name will now be retained when the log file is rolled.