def is_logs_collection_time():
    """
    :return: True if current timegenerated configuration is set to log collection time
    """
    grep = subprocess.Popen(["grep", "-i", "'Timestamp' => OMS::Common::fast_utc_to_iso8601_format(Time.now.utc),",
                             oms_agent_field_mapping_configuration], stdout=subprocess.PIPE)
    o, e = grep.communicate()
    output_decode = o.decode(encoding='UTF-8')
    if e is not None:
        print_error("Couldn't locate TimeGenerated configuration")
        sys.exit()
    if output_decode is not None and output_decode != "":
        return True
    return False

    :return: True if current timegenerated configuration is set to log collection time
    
DataConnectors/CEF/TimeGenerated.py