Collecting microservice logs - Cloud

Talend Remote Engine User Guide for Linux

author
Talend Documentation Team
EnrichVersion
Cloud
EnrichProdName
Talend Cloud
task
Design and Development
Installation and Upgrade
EnrichPlatform
Talend Remote Engine
When an Artifact is deployed, every log from its execution is collected in Log Server and accessible from the GUI.

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.

Procedure

  • To disable log collection, set the value of the ms.log.collection.enabled property to false.
  • To change the log4j2 configuration, edit the ms.custom.log4j2.conf property.
    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 ms.log.collection.port.
    The default values are localhost and 7788.
  • To change the delay between Talend Log Server reconnections, edit the ms.log.collection.reconnection.delay property.
    The default value is 10000 (ms).