def is_rsyslog_new_configuration():
    """
    Checks if Rsyslog is running the new or old config format
    """
    with open(rsyslog_conf_path, "rt") as fin:
        for line in fin:
            if "module(load=" in line:
                return True
        fin.close()
    return False

    Checks if Rsyslog is running the new or old config format
    
DataConnectors/Syslog/Forwarder_AMA_installer.py