Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT

Change Log Level for all tasks in an Specific TMC Environment and Workspace

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Change Log Level for all tasks in an Specific TMC Environment and Workspace

Last Update:

Oct 31, 2023 6:25:22 PM

Updated By:

TalendSolutionExpert

Created date:

Oct 31, 2023 6:25:22 PM

Change Log Level for all tasks in an Specific TMC Environment and Workspace 

Background:

In resent Talend Cloud release, all the tasks log level are set to Warning by default.
Under some circumstances, users needs to change the log level for all tasks in a specific workspaces.
If there are hundreds of tasks, doing this manually is impossible. Using TMC public API can resolve this easily.

This resolution works no matter where the REs or RE clusters are installed. It just updates the log level settings in TMC.
(The script example attached to this article needs to be executed on a Linux server since it's written in bash language as a .sh.)

Resource:

https://help.talend.com/r/en-US/Cloud/management-console-with-pipeline-designer/tic-api
https://api.us.cloud.talend.com/tmc/swagger/swagger-ui.html

How-To:

* Create personal access token in TMC->Right upper coner your name->Profile Preferences->Personal access token.
* Use the token in TMC public api swagger to authorize.
* Use the GET environments api to get the target environments ids.
* Use the GET workspaces api to get the target workspaces ids.
* Edit the information needed in the set_log-Copy.sh script in the attachment.
* Run it on a Linux Server (This script has only been tested running on Linux.).

Result:

The log level of all the tasks in the target workspace are updated.

Reference JIRA: 

TPOPS-4832

Contributors
Version history
Last update:
‎2023-10-31 06:25 PM
Updated by: