Found using OpenDJ 4.0.0.
- change the default retention policy to only keep 2 files
- do in a loop some search, add, del operation to force the file rotation
=> at some point we have 10 files kept instead of 2
=> we have to restart the JSON logger to reload these changes