Manage Tasklogs
What are Tasklogs?
When a workflow is executed, it generates a detailed record of its activities. This record is referred to as a tasklog within the n2x.io system.
List the Tasklogs
Warning
Only Account Administrators or Admin Users can manage tasklogs.
You can list the tasklogs of your workflow either using the n2x.io webUI or CLI (n2xctl):
To view your tasklogs, follow these steps:
- Navigate to the left-hand menu and click on
Workflows
. - Select the desired
Tenant
,Project
andWorkflow
.
A list of your tasklogs will be displayed.
Use the following command to list the tasklog:
n2xctl ops tasklog list
The n2xctl tool will prompt you to specify the target for your tasklog:
Tenant
: Choose the tenant where the project resides.Project
: Select the project containing the relevant workflow.Workflow
: Select the workflow to which the tasklog will belong.
$ n2xctl ops tasklog list
n2xctl v0.0.3-20240725171430+88c4863--go1.22.5
n2xctl is a CLI to control the n2x SASE platform.
Find more information at https://n2x.io/docs
ยป Tenant: [demo] Demo Tenant
ยป Project: demo
ยป Workflow: workflow
โโโโโ Ops: TaskLogs โก
โโโโโโโโโโโโ
TaskLog List
โโโโโโโโโโโโ
TASK TIMESTAMP TARGET NODE
---------------------------------------------------
kernel-verion 2024-07-31 14:40:00 client-b
kernel-verion 2024-07-31 14:45:00 client-b
kernel-verion 2024-07-31 14:50:00 client-b
kernel-verion 2024-07-31 14:55:00 client-b
Show the Tasklog Details
Warning
Only Account Administrators or Admin Users can manage tasklogs.
You can show the tasklog details of your workflow either using the n2x.io webUI or CLI (n2xctl):
In the navigation menu on the left, click Workflows
and follow these steps:
- Select the
Tenant
. - Select the
Project
andWorkflow
. - Click on the icon of tasklog.
To view the tasklog output, click on the Output
tab:
Use the following command to show the tasklog details of your workflow:
n2xctl ops tasklog show
You will be prompted to select the specific Tenant
, Project
, Workflow
, and Tasklog
to show the details:
$ n2xctl ops tasklog show
n2xctl v0.0.3-20240725171430+88c4863--go1.22.5
n2xctl is a CLI to control the n2x SASE platform.
Find more information at https://n2x.io/docs
ยป Tenant: [demo] Demo Tenant
ยป Project: demo
ยป Workflow: workflow
ยป TaskLog: [Use arrows to move, type to filter]
โ Task: kernel-verion | Timestamp: 2024-07-31 14:40:00.001 +0200 CEST
ยป TaskLog: [Use arrows to move, type to filter]
Task: kernel-verion | Timestamp: 2024-07-31 14:45:00.001 +0200 CEST
ยป TaskLog: [Use arrows to move, type to filter]
Task: kernel-verion | Timestamp: 2024-07-31 14:50:00.001 +0200 CEST
ยป TaskLog: [Use arrows to move, type to filter]
Task: kernel-verion | Timestamp: 2024-07-31 14:55:00.001 +0200 CEST
ยป TaskLog: [Use arrows to move, type to filter]
Task: kernel-verion | Timestamp: 2024-07-31 14:55:00.001 +0200 CEST
โโโโโ Ops: TaskLog Details โก
โโโโโโโโโโโโโโโโโโโ
TaskLog Information
โโโโโโโโโโโโโโโโโโโ
Tenant ID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Project ID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Workflow ID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
TaskLog ID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Task Name kernel-verion
Task Description Get Kernel Version
Tenant demo
Node client-b
Result [EXECUTED]
Timestamp 2024-07-31 14:45:00.001 +0200 CEST
Activity Log
โโโโโโโโโโโโ
-----BEGIN OUTPUT-----
6.8.0-39-generic
-----END OUTPUT-----
Delete a Tasklog
Warning
Only Account Administrators or Admin Users can manage tasklogs.
You can delete a tasklog from your workflow either using the n2x.io webUI or CLI (n2xctl):
To delete a tasklog, follow these steps:
- Navigate to the
Workflows
section in the left-hand menu. - Select the desired
Tenant
,Project
, andWorkflow
. -
Click on the icon next to the tasklog you want to remove.
-
To confirm the deletion, click the icon.
Use the following command to delete a tasklog from your workflow:
n2xctl ops tasklog delete
You will be prompted to select the specific Tenant
, Project
,Workflow
, and Tasklog
to delete:
$ n2xctl ops tasklog delete
n2xctl v0.0.3-20240725171430+88c4863--go1.22.5
n2xctl is a CLI to control the n2x SASE platform.
Find more information at https://n2x.io/docs
ยป Tenant: [demo] Demo Tenant
ยป Project: demo
ยป Workflow: workflow
ยป TaskLog: [Use arrows to move, type to filter]
โ Task: kernel-verion | Timestamp: 2024-07-31 14:40:00.001 +0200 CEST
ยป TaskLog: Task: kernel-verion | Timestamp: 2024-07-31 14:40:00.001 +0200 CEST
Target: client-b
ยป Confirm deletion? Yes
Done