Wednesday, August 1, 2012

Difference between LOG_SESSION and LOG_DISABLE_SESSION_INFO

I ran across an issue with log.nsf file growing quite large. To help reduce the size of the log file I started looking at how to remove the following session information:

Open session for Test User1/Domain (Release 8.5.3)
Closed session for Test User1/Domain Databases accessed:   1  Documents read:   1   Documents written:   0

from the log.nsf miscellaneous events. I found two notes.ini parameters, LOG_SESSIONS and LOG_DISABLE_SESSION_INFO. They both do the same thing, but what is the difference? After firing up a test environment, LOG_DISABLE_SESSION_INFO=1 disables open session / closed session events on the console, and therefore the miscellaneous events. This parameter also disables usage details in the log.nsf ( views named Usage / by Date, Usage / by User, Usage / by Database, Usage / by Size will be empty).

LOG_SESSIONS=0 disables the open session / closed session events on the console, and therefore the miscellaneous events. However, the usage details are recorded in the log.nsf ( views named Usage / by Date, Usage / by User, Usage / by Database, Usage / by Size will not be empty). Hope this helps someone out there :)

2 comments:

  1. Thanks Chris - just what I was looking for,
    Thanks for your efforts !!

    ReplyDelete
    Replies
    1. I'm, glad this helped and thanks for the feed back :)

      Delete