Collect stat for standby database log gap