Updating time-to-live index for persistent chat
The time-to-live (TTL) setting defines how long the chat history is stored in the database. The default value is 90 days. Administrators can modify the value based on the organization's preferred setting.
Before you begin
The TTL index in MongoDB must be rebuilt. For more information, refer to Manage Indexes in the MongoDB documentation.
About this task
To update the TTL settings, modify chatlogging.ini.
Procedure
- Stop the Sametime Community server.
- Modify chatlogging.ini and set the CL_MONGO_HISTORY_TTL value to the preferred setting.
-
In the Mongo shell, run the following commands.
use chatlogging
db.EVENTS.getIndexes()
db.EVENTS.dropIndex( "TimeStamp_1")
Thedb.EVENTS.dropIndex
command defines the name of the index to drop. The value isTimeStamp_1
. - Start the Sametime Community server. A new TTL index with the new value is created.
-
Run the following command to confirm that the value for
TimeStamp_1
has been updated.db.EVENTS.getIndexes()