Manage groupId of parent and Log