def METHOD_NAME(phase, prev, current):
    cfg = get_config()
    rmatch, offset = None, 7
    for entry in current:
        gmatch, ymatch, pmatch = None, None, None
        # find green syslogs to discard
        for regex in cfg.get("green", []):
            if re.compile(regex).match(entry[offset]):
                gmatch = regex
                break
        if gmatch is not None:
            continue  # ignore the syslog
        # find yellow syslogs to report only once
        for regex in cfg.get("yellow", []):
            if re.compile(regex).match(entry[offset]):
                ymatch = regex
                break
        # check if yellow syslog already noted
        for pentry in prev:
            if pentry[offset] == entry[offset]:
                pmatch = ymatch
                break
        if pmatch is not None:
            continue  # syslog already reported once
        # add the entry to current syslogs
        prev.append(entry)
        if rmatch is not None:
            continue  # first red syslog already noted
        # check if red syslog to report SW Issue
        for regex in cfg.get("red", []):
            if re.compile(regex).match(entry[offset]):
                rmatch = " ".join(entry)
                break
    return rmatch