Audit Log Purge Scheduler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Audit Log Purge Scheduler
I am using Windchill PDMLink Release 13.0.2.1
Is it possible to create a monthly Audit Log Purge task, to maintain only the entries of the last 12 month? For example, if the date of the schedelud job is 01/02/2025, it should delete all the entries before 01/02/2024, and keep only the entries between 01/02/2024 and 01/02/2025.
Thanks in advance.
Maite
- Labels:
-
Bus_System Administration
-
Other
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I do not have 13 yet. Can you screen shot interface? Help docs do not image details but other places allow for relative options for date like days back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I asked the same question to Tech Supt when audit log purge was introduced. As far as I know, what you want to do is not possible with the OOTB functionality.
- Duration assumes you want to purge everything from today going back. We have "Last Year" and "Last Month" which sound like they may skip the more recent entries. However, I think "Last Year" will purge out all of 2024 on January 1 2025 and "Last Month" will do the same on a monthly basis.
- Start and end dates are static, not relative.
Short of customization, I am not aware of any way to do what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mr Meadows is correct. No can do OOTB.
However, you can certainly write a class and schedule it to run once a month (or whatever) and have it delete all entries before the current date - 1 year.
This is no problem to do.
Rest assure to do what you are asking is quite doable.
Any good Windchill consulting firm should be able to write and implement this for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello all,
Thank you very much for your feedback. This confirm what we suspected!
Start and end date of purge criteria are static, this is the main problem. And if you try to select criteria by duration, it doesn't have the option of "keep last year" or something like this.
Of course, you could do it manually, but the end customer does not want to have to take care about that.
Let me share some screenshot to make it more clear to @avillanueva
Best regards,
Maite
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you are needed the API to create a scheduled queue:
ScheduleQueueEntry entry = AttributeServerAccess.addQueueEntry(queue, principal, method, classIdentity, argTypes, arguments, timestamp);
There is an example. I am sure you can create one via the API, see how its defined in the database and replicate. @mmeadows-3 makes a good point that this appears to be a shortcoming in the spec. Should have been a relative sliding windows otherwise, why would you run this ever on a schedule? So, in summary. Not possible currently. Customization is possible and plenty of folks out there who can write this. Personally, easy enough to set a reminder 4 times a year to run a one time job with specific time periods.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
yes, exactly this 😅
