Add user log ttl option (issue #3855)