question

NayanDas-0964 avatar image
2 Votes"
NayanDas-0964 asked AnuragSingh-MSFT commented

Purge table data in Log Analytics Workspace forever stuck in pending state using Azure REST API

I tried purging Heartbeat and ContainerLog table data in my Log Analytics Workspace (linked to my AKS cluster) and the task is forever in pending state. I am checking for the status of purge task using the x-ms-status-location header returned on POSTing the purge request. I am using this REST API.

Please help me here to reduce the cost of our logs.


azure-monitor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnuragSingh-MSFT avatar image
0 Votes"
AnuragSingh-MSFT answered AnuragSingh-MSFT commented

Hi @NayanDas-0964

Welcome to Microsoft Q&A! Thanks for posting the question.

This might happen when the query/parameters used is incorrect. Do you still see that the operation has not been completed using query in Log Analytics Workspace (i.e., the records that needed to be removed are still present)?

Also, please check the "Activity logs" for the targeted workspace. It should contain the operation details along with failure information, if any.

Please let me know if you have any questions.


Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@NayanDas-0964, Just checking in to see if the above post helped answer your question. Kindly let us know if you have any further questions on this specific topic, we would be more than happy to assist you.

To benefit the community find the right answers, please do mark the post which was helpful by clicking on 'Accept Answer' & 'Up-Vote'.

0 Votes 0 ·