How to configure multiple vse and vse_matches files

Document ID:  TEC1074954
Last Modified Date:  08/10/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Service Virtualization

Releases

  • CA Service Virtualization:Release:9.1
  • CA Service Virtualization:Release:8.0.0
  • CA Service Virtualization:Release:8.0.1
  • CA Service Virtualization:Release:8.0.2
  • CA Service Virtualization:Release:8.1
  • CA Service Virtualization:Release:8.2
  • CA Service Virtualization:Release:8.3
  • CA Service Virtualization:Release:8.4
  • CA Service Virtualization:Release:8.5
  • CA Service Virtualization:Release:9.0
  • CA Service Virtualization:Release:9.5
  • CA Service Virtualization:Release:9.5.1

Components

  • CA ITKO LISA Virtual Services Environment (VSE):ITKOVS
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

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >