Changelog

Usage example

standalone = topology.standalone
# Create
changelog_dn = standalone.changelog.create()
# List
changelog_entries = standalone.changelog.list(changelogdn=changelog_dn)
# Delete
standalone.changelog.delete()

Module documentation

class lib389.changelog.Changelog5(instance, dn='cn=changelog5, cn=config')[source]

Represents the Directory Server changelog. This is used for replication. Only one changelog is needed for every server.

Parameters:instance (lib389.DirSrv) – An instance
set_max_age(value)[source]

The maximum age of entries in the changelog.

Parameters:value (str) – The age with a time modifier of s, m, h, d, w.
set_max_entries(value)[source]

Configure the max entries the changelog can hold.

Parameters:value (str) – the number of entries.
set_trim_interval(value)[source]

The time between changelog trims in seconds.

Parameters:value (str) – The time in seconds