expand script for using multiple metrics and search pattern to search in one logfile