def skip_processing_file(file_path):
    """
    Customer can choose to ingest either audit or traffic or both
    When SQS messages are processed, this method helps filter which file paths should be filtered away

    Return whether a file indicated by file_path is filtered or not, and this is dependent on LOGS_TO_CONSUME

    So if LOGS_TO_CONSUME is set to All by customer, then all logs are consumed by default and the method returns False
    Else, either audit or traffic events are consumed
    """
    if LOGS_TO_CONSUME == ALL_TRAFFIC:
        return False

    if "auditable" in file_path:
        return FLOW_EVENTS in LOGS_TO_CONSUME
    else:
        return AUDIT_EVENTS in LOGS_TO_CONSUME

    Customer can choose to ingest either audit or traffic or both
    When SQS messages are processed, this method helps filter which file paths should be filtered away

    Return whether a file indicated by file_path is filtered or not, and this is dependent on LOGS_TO_CONSUME

    So if LOGS_TO_CONSUME is set to All by customer, then all logs are consumed by default and the method returns False
    Else, either audit or traffic events are consumed
    
Solutions/IllumioSaaS/Data Connectors/CommonCode/helper.py