Skip to main content

Log directory rotation

You can use the following command from the service directory to rotate the Logs directory defined by the PSTempDir setting:

idmlogsvc -rotatelog [<N>]

This command performs a backup and rotation of the Logs directory. That is, it appends .<yyyy>-<mm>-<dd>-<hhmmss>. <SerialNo> to the old directory name and creates a new directory with the original name, up to a maximum of <N> copies (default is 7).

If the directory path set in PsTempDir ends with the instance name, the entire log folder will be rotated, creating new folders named after the instance. Otherwise, all files and folders contained inside PsTempDir will be (non-recursively) rotated, using their original names.

To perform a one time manual rotation of the log file directory, type:

idmlogsvc.exe -rotatelog

By default, the rotation method is set to using the last modified date of the folder/file. You can modify the rotation method by adding the following registry entry in:

HKLM\SOFTWARE\Bravura Security\Bravura Security Fabric\<instance>\idmlogsvc

Entryname

RotateType

Value

0—1 Set to 1 to rotate using the date and time contained in the folder/file name.

Datatype

DWORD

Default

0

Logs directory rotation is scheduled to occur nightly on the Bravura Security Fabric server. Logs on proxy servers are rotated if auto discovery is executed between +/-0.5 hours of the scheduled job. See About the Bravura Security Fabric Log for more information about log files.