About this task
Default microservice logs are configured in the embedded log4j2.xml file. During deployment, the embedded log4j2.xml is updated to collect logs to Talend Cloud. Log collection is enabled by default.
When recovering artifacts, every log is collected again.
To configure a custom behavior for log collection, edit the org.talend.ipaas.rt.dsrunner.cfg file in the <RemoteEngineInstallationDirectory>/etc directory.
- To disable log collection, set the value of the ms.log.collection.enabled property to false.
To change the log4j2 configuration, edit the
During deployment, if the ms.custom.log4j2.conf has been configured, the microservice service will use a copy of this file as is, and will not configure it for collection to Talend Cloud.
To change the Talend Log Server
host and port, edit the ms.log.collection.host and
The default values are localhost and 7788.
To change the delay between Talend Log Server reconnections, edit the
The default value is 10000 (ms).