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
Solved! Go to Solution.
Views
Replies
Total Likes
Create a Workflow as below,
Scheduler: Schedule your workflow to run daily to clear the warning logs.
Query:
Targeting Dimension: xtk:workflowLog
Filtering Dimension: xtk:workflowLog
Query condition:
@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,
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'
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
Create a Workflow as below,
Scheduler: Schedule your workflow to run daily to clear the warning logs.
Query:
Targeting Dimension: xtk:workflowLog
Filtering Dimension: xtk:workflowLog
Query condition:
@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,
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'
Views
Replies
Total Likes
Views
Likes
Replies