get closest pid from log server group.