Expand my Community achievements bar.

SOLVED

Deletion of Workflow Audit Warning Logs

Avatar

Level 2

Hi Team,

 

I hope this mail finds you well !!

I am facing some difficulties monitoring the workflow audit logs for some of my workflow which has Javascript to call an API.

 

In those workflows, multiple warning logs are getting generated and after analyzing them, I came to know it's not affecting my execution. Is there any way we can remove these warning logs from some specific workflows?

I'm aware that the Database Clean-Up workflow deletes these logs as per their purging policy but it's applicable for all the workflows.

 

It would be great if anyone could help me here.

Thanks for your time.

 

Regards,

Himanshi

 

Himanshi_S_0-1695293836896.png

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Himanshi_S ,

Create a Workflow as below,

ParthaSarathy_0-1695313810189.png

 

Scheduler: Schedule your workflow to run daily to clear the warning logs.

Query:

Targeting Dimension: xtk:workflowLog

Filtering Dimension: xtk:workflowLog

Query condition:

ParthaSarathy_1-1695313996806.png

 

@logType EQUAL TO Warning

AND
[workflow/@internalName] EQUAL TO 'yourWorkflow1_internalName'

(If you have multiple workflows, you can select 'is included in' )

 

Update Data:

Operation Type: Delete

Update dimension: xtk:workflowLog

And configure as below,

ParthaSarathy_2-1695314226583.png

 

Note: This workflow will delete all the Warning logs of the workflows which you mentioned in Query.

If you want to delete only particular warning from these workflows, then you can add one more condition in query as,

@message CONTAINS 'keyword'

ParthaSarathy_3-1695314489594.png

 

 

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @Himanshi_S ,

Check your scripts in the workflow and remove or comment the line if you have any logWarning() if it is not required.

Or in workflow property's Execution tab, you can change the History in days as 1.

ParthaSarathy_0-1695295390920.png

 

Avatar

Level 2

Thanks, @ParthaSarathy  for your response.

 

I had already checked for logWarning() in the script and there wasn't any.

 

For modifying the history in the workflow properties, by doing so all the logs will get deleted after 1 day. However, I only want to delete the warning logs.

Is there any way we can do it?

 

 

Avatar

Correct answer by
Community Advisor

@Himanshi_S ,

Create a Workflow as below,

ParthaSarathy_0-1695313810189.png

 

Scheduler: Schedule your workflow to run daily to clear the warning logs.

Query:

Targeting Dimension: xtk:workflowLog

Filtering Dimension: xtk:workflowLog

Query condition:

ParthaSarathy_1-1695313996806.png

 

@logType EQUAL TO Warning

AND
[workflow/@internalName] EQUAL TO 'yourWorkflow1_internalName'

(If you have multiple workflows, you can select 'is included in' )

 

Update Data:

Operation Type: Delete

Update dimension: xtk:workflowLog

And configure as below,

ParthaSarathy_2-1695314226583.png

 

Note: This workflow will delete all the Warning logs of the workflows which you mentioned in Query.

If you want to delete only particular warning from these workflows, then you can add one more condition in query as,

@message CONTAINS 'keyword'

ParthaSarathy_3-1695314489594.png