We had a run-away agent the other day resulting in agentlog.nsf blowing up to over 20 gigs.
Can this log be deleted and recreated while the server is up?
I imagine the steps would be
- Tell agent quit
- dbcache flush
- Delete agentlog.nsf
- Recreate from template
- load agent
Am I in the ballpark?
Hello @Mark James !
The steps you described should work to delete a database while Domino Server is up.
Please mark this question as answered and helpful if your issue is resolved.
Regards!
Rodrigo de San Vicente
Staff Software Engineer
Collaborative Workflow Platform
TLDR: Yes, you can just delete and recreate the database. You could also remove all documents and compact it (if it e.g. is replicated to other servers).
Just replace "agent" by "amgr" in your commands...
Long description:
Although the agentlog.ntf is a default template that is delivered with every Domino installation the agentlog.nsf is a custom database that just happens to have the same name as the template (except the extension).
The designer of the application / applications using that database for logging could have chosen any name he wanted and put the database in any sub directory he liked.
So to answer your question: agentlog.nsf is a custom database as any other and can be deleted and recreated as long as no code accesses it using its replica id.
As normally you use an agentlog- database with the NotesLog- Class it is very unlikely that it is accessed via its replica ID, as the method to open it takes server + database as parameters and not replicaid as you can read from the designer help:
OpenNotesLog (NotesLog - LotusScript)
Opens a specified Domino® database for logging.
Defined in
NotesLog
Syntax
Call notesLog .OpenNotesLog( server$ , dbfile$ )