def get_engine_and_version(sensor_tech):
    """returns list with engine ("suricata" or "snort") as first element, and
    version (e.g. "5.0.1", "2.9.9.0" as second element. Strips out prefix (e.g. "rust_")
    and ignores custom config (if present).  Example passed in 'sensor_tech' values:
        suricata/5.0.1
        suricata/rust_4.1.5
        suricata/4.0.7/mycustomconf
        suricata/rust_4.1.5/mycustomconf
        snort/2.9.9.0
    """
    try:
        engine = sensor_tech.split("/")[0]
        version = prefix_strip(sensor_tech.split("/")[1])
        return (engine, version)
    except Exception as e:
        logger.error(
            f"Unable to process value '{sensor_tech}' in get_engine_and_version(): {e}"
        )
        return (None, None)
returns list with engine ("suricata" or "snort") as first element, and
    version (e.g. "5.0.1", "2.9.9.0" as second element. Strips out prefix (e.g. "rust_")
    and ignores custom config (if present).  Example passed in 'sensor_tech' values:
        suricata/5.0.1
        suricata/rust_4.1.5
        suricata/4.0.7/mycustomconf
        suricata/rust_4.1.5/mycustomconf
        snort/2.9.9.0
    
app/dalton.py