my ($path) = $logfilepath =~ s/$ref_srv/$server/i;