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.)
* 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.