code: def parse_log_path(args, trial_content):
      '''parse log path'''
      path_list = []
      host_list = []
      for trial in trial_content:
          if args.trial_id and args.trial_id != 'all' and trial.get('id') != args.trial_id:
              continue
          pattern = r'(?P<head>.+)://(?P<host>.+):(?P<path>.*)'
          match = re.search(pattern,trial['logPath'])
          if match:
              path_list.append(match.group('path'))
              host_list.append(match.group('host'))
      if not path_list:
          print_error('Trial id %s error!' % args.trial_id)
          exit(1)
      return path_list, host_lisf parse_log_path(args, trial_content):
      '''parse log path'''
      path_list = []
      host_list = []
      for trial in trial_content:
          if args.trial_id and args.trial_id != 'all' and trial.get('id') != args.trial_id:
              continue
          pattern = r'(?P<head>.+)://(?P<host>.+):(?P<path>.*)'
          match = re.search(pattern,trial['logPath'])
          if match:
              path_list.append(match.group('path'))
              host_list.append(match.group('host'))
      if not path_list:
          print_error('Trial id %s error!' % args.trial_id)
          exit(1)
      return path_list, host_list
docs: parse log path