How to configure multiple vse and vse_matches files

Document ID : KB000015324
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Sometime customers will have multiple VSE's on same machine and want to have separate vse and vse_matches.log files for different VSE's. This article will provide information on how to achieve that  functionality.

Question:

How to configure different vse.log and vse_matches.log files for multiple VSE's.

Environment:
All supported DevTest releases.
Answer:

There are multiple ways you can configure different vse and vse_matches files. We recommend the below options:

 

1.Option  - Maintain separate logging.properties

-----------------------------------------------------------------

. Maintain a separate logging.properties file per VSE 

. Ensure the vse_matches.log file name are different in each logging.properties file 

. Update the VSE.vmoptions file to point to the right logging.properties file.

. Update VSE.vmoptions with LISA_LOG property to use different VSE log file.

For example: You have 2 VSE's (VSE1 & VSE2)

* VirtualServiceEnvironmentService.vmoptions is using logging_vse1.properties

-Dlisa.vseName=VSE1 

-Dlisa.net.8.port=2013 

-DLISA_LOG=VSE1.log 

-Dlog4j.configuration=D:\CA\DevTest\logging_vse1.properties

. In logging_vse1.properties the below property is modified 

log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches.log ==> log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches1.log 

 

* VirtualServiceEnvironmentService2.vmoptions, is using logging_vse2.properties 

-Dlisa.vseName=VSE2 

-Dlisa.net.8.port=2024 

-DLISA_LOG=VSE2.log 

-Dlog4j.configuration=D:\CA\DevTest\logging_vse2.properties 

. In logging_vse2.properties the below property is modified 

log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches.log ==> log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches2.log 

 

2. Option - In case if you would want to maintain only one logging.properties file

---------------------------------------------------------------------------------------------------------- 

. Set the value of that file name argument in the VSE.vmoptions 

-DLISA_VSEMATCHES_LOG=vse_matches1 

. Ensure the vse_matches file names set in the vmoptions files are unique. 

. Then parameterize the vse_matches file name in the logging.properties file as below 

log4j.appender.VSEAPP.File=${lisa.tmpdir}/${LISA_VSEMATCHES_LOG}.log 

 

For example: You have 2 VSE's (VSE1 & VSE2)

* VirtualServiceEnvironmentService.vmoptions is using default logging.properties 

-Dlisa.vseName=VSE1 

-Dlisa.net.8.port=2013 

-DLISA_LOG=VSE1.log 

-DLISA_VSEMATCHES_LOG=vse_matches1 

 

* VirtualServiceEnvironmentService2.vmoptions, is same logging.properties also

-Dlisa.vseName=VSE2 

-Dlisa.net.8.port=2025 

-DLISA_LOG=VSE2.log 

-DLISA_VSEMATCHES_LOG=vse_matches1  

 

. Modify the below property in logging.properties. 

log4j.appender.VSEAPP.File=${lisa.tmpdir}/vse_matches.log ==>log4j.appender.VSEAPP.File=${lisa.tmpdir}/${LISA_VSEMATCHES_LOG}.log