code: def get_field(field, slog, fl=False):
          
          field += r'\:\s+([\d\.]+)'
          match = re.search(field, slog)
          if match:
              if fl:
                  return float(match.group(1))
              return int(match.group(1))
          return 0
docs: parse sample log for field
             set fl=True to return a float
             otherwise, returns int