def METHOD_NAME():
    errorlog = ['WARNING: CPU:', 'Oops', 'Segfault', 'soft lockup',
                'ard LOCKUP', 'Unable to handle paging request',
                'rcu_sched detected stalls', 'NMI backtrace for cpu']
    err = []
    logs = process.system_output("dmesg -Txl 1,2,3,4"
                                 "").decode("utf-8").splitlines()
    for error in errorlog:
        for log in logs:
            if error in log:
                err.append(log)
    return "\n".join(err)