Log.nsf rename (updated)

OK, I think I remember part of what I did so maybe this will help. I did something that created unique names for the log.nsf when it was generated and also had the command “restart server” run each night since it was a shop where no one used email just after midnight. Since it was a new day the log.nsf got a new name which contained that days date. This gave me a new log to review for each day. This may be overkill for a lot of people but I was not able to be there every day but sometimes wanted to review the logs from earlier in the week.


I am looking for a script to automatically rename log.nsf and make new ones each day or when it is full. The last time I did this it renamed to log(month, day, year).nsf, example log013001.nsf. I can’t remember how I did this last time and I just can’t find this in a search.

Subject: log.nsf rename

This is the third time you have posted the same question without getting an answer. Since this can’t be done with Domino running, it is an OS question. since you haven’t specified the OS of the Domino server, you can’t really expect an answer, can you?

/Peter

Subject: RE: log.nsf rename

It isn’t an OS question since I did it in Domino before. I had it running in MS Server 2003 on a server running Domino 6.5.2. Log.nsf is a Domino log so it isn’t part of the OS, now is it?

I found another method to save my log.nsf which I was about to post here when I saw your comment.

Usually, log.nsf contains 7-14 days activities (setup is in notes.ini). If you want to keep all the activities (after 7-4 days) in the log file, setup the archive agent that runs on the server…

Instructions

Right click on the log.nsf database, select “Database” – " Properties".

Click on “Archive Settings…”

In the “Advanced” tab, select “Automatically on server…”

In the “Basic” tab, entry after X days…and select the directory where you want the a_log.nsf to be stored.

Edit the “server program” in the PAB (names.nsf)…

*Program Line=ncompact.exe

*Command Line=log.nsf -A

(Remark:letter “A” much be uppercase)

*Enable the Schedule to run each day…

I really think someone out there can help figure out the way I did it before but a lot of people don’t read this forum every day. I didn’t notice the section about posting more than once but I have now, maybe you should read the part about being rude.

"We welcome everyone, but specifically reserve the right to prohibit the following:

Abusive, negative, or unproductive comments

Rude or offensive language

Excessive commercial promotion or recruiting efforts"

Subject: This is all that is left to find out

I can’t figure out exactly what I need to enter here.

This comes from the Domino help file;

logfilename = The log database file name, usually LOG.NSF

I need the name to be log(date).nsf instead of just log.nsf.

Once this is done I’ll make the server run “restart server” every night just after midnight giving the log file that days date.

Subject: RE: log.nsf rename

So please tell me in what way I was rude to you? By informing you of your error? By giving you a link to the FAQ?

/Peter