Skip to content

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:

  1. Navigate to the left-hand menu and click on Workflows.
  2. Select the desired Tenant, Project and Workflow.

A list of your tasklogs will be displayed.

Tasklog executions list.

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:

  1. Tenant: Choose the tenant where the project resides.
  2. Project: Select the project containing the relevant workflow.
  3. 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:

Show Tasklog Details

  1. Select the Tenant.
  2. Select the Project and Workflow.
  3. Click on the icon of tasklog.

To view the tasklog output, click on the Output tab:

Tasklog Output

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:

  1. Navigate to the Workflows section in the left-hand menu.
  2. Select the desired Tenant, Project, and Workflow.
  3. Click on the icon next to the tasklog you want to remove.

    Tasklog Delete

  4. To confirm the deletion, click the icon.

    Tasklog Delete Confirm

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