def METHOD_NAME(self, rules):
    # Parse access log format, anyone is invited to fix this nasty regex
    access_re = re.compile("^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})( - )(\[.*\])( .* ){1,4}(/.* )(.*/.* )(\d.* )(.*)\n$")
    error_re = re.compile("^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})( - )(\[.*\])( \[.*\])(.*)$")
    for r in rules:
        if r.type == 'access':
            line = self.get_last_file_line(ACCESS_FILE)
            fields = access_re.split(line)
            data = {'ip': fields[1],
                    'time': fields[3],
                    'method': fields[4].strip(),
                    'uri': fields[5].strip(),
                    'protocol': fields[6].strip(),
                    'status': fields[7].strip(),
                    'size': fields[8]
                    }
            self.check_field(r.ip, data['ip'])
            self.check_field(r.time, data['time'])
            self.check_field(r.method, data['method'])
            self.check_field(r.uri, data['uri'])
            self.check_field(r.protocol, data['protocol'])
            self.check_field(r.status, data['status'])
            self.check_field(r.size, data['size'])
        elif r.type == 'error':
            line = self.get_last_file_line(ERROR_FILE)
            fields = error_re.split(line)
            # We always expect at least 4 fields
            if len(fields) < 4:
                if self.silent_mode is False:
                    print "Error: we did not find the expected fields"
                    print "Logfile line"
                    print " %s " % line
                exit(1)
            data = {'ip': fields[1],
                    'time': fields[3],
                    'error': fields[4].strip('[error (\d)]'),
                    'message': fields[5].strip()
                    }
            self.check_field(r.ip, data['ip'])
            self.check_field(r.time, data['time'])
            self.check_field(r.error, data['error'])
            self.check_field(r.message, data['message'])
    if self.silent_mode is False:
        print "Check passed :)"