code: def _parse_auth_message(self, auth_message):
          
          result = {}
  
          has_matched = False
  
          for regex in REGEXES_INVALID_USER:
              # Check for the invalid user/ip messages
              m = re.search(regex, auth_message)
  
              if m and not has_matched:
                  has_matched = True
  
                  # Save the username and IP
                  result['username'] = m.group('user')
                  result['ip'] = m.group('ip')
  
          for regex in REGEXES_INVALID_IP:
              # Check for the invalid ip messages
              m = re.search(regex, auth_message)
  
              if m and not has_matched:
                  has_matched = True
  
                  # Save the IP
                  result['ip'] = m.group('ip')                        
  
          for regex in REGEXES_IGNORE:
              # Check for messages we want to ignore
              m = re.search(regex, auth_message)
  
              if m and not has_matched:
                  has_matched = True
  
          # If it's an ssh log and we don't know what it is, handle that
          if not has_matched:
              sys.stderr.write("Unhandled auth message: %s\n" % auth_message)
  
          return result
docs: Parse a message to see if we have ip addresses or users that we care about
  
          :param auth_message: The auth message to parse
          :return: Result