# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).

from datetime import datetime
import oci

# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()


# Initialize service client with default config file
log_analytics_client = oci.log_analytics.LogAnalyticsClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
extract_structured_log_field_paths_response = log_analytics_client.extract_structured_log_field_paths(
    namespace_name="EXAMPLE-namespaceName-Value",
    logan_parser_details=oci.log_analytics.models.LogAnalyticsParser(
        content="EXAMPLE-content-Value",
        description="EXAMPLE-description-Value",
        display_name="EXAMPLE-displayName-Value",
        edit_version=753,
        encoding="EXAMPLE-encoding-Value",
        example_content="EXAMPLE-exampleContent-Value",
        field_maps=[
            oci.log_analytics.models.LogAnalyticsParserField(
                field=oci.log_analytics.models.LogAnalyticsField(
                    cee_alias="EXAMPLE-ceeAlias-Value",
                    data_type="EXAMPLE-dataType-Value",
                    regular_expression="EXAMPLE-regularExpression-Value",
                    description="EXAMPLE-description-Value",
                    display_name="EXAMPLE-displayName-Value",
                    edit_version=708,
                    facet_priority=614,
                    name="EXAMPLE-name-Value",
                    is_facet_eligible=True,
                    is_high_cardinality=True,
                    is_large_data=True,
                    is_multi_valued=False,
                    is_primary=True,
                    is_system=True,
                    is_summarizable=True,
                    mapped_value="EXAMPLE-mappedValue-Value",
                    is_metric_key_eligible=True,
                    is_metric_value_eligible=True,
                    range_facet_eligible=584,
                    is_table_eligible=False,
                    unit_type="EXAMPLE-unitType-Value"),
                parser_field_id=287,
                parser_field_expression="EXAMPLE-parserFieldExpression-Value",
                parser_field_name="EXAMPLE-parserFieldName-Value",
                storage_field_name="EXAMPLE-storageFieldName-Value",
                parser_field_integrator_name="EXAMPLE-parserFieldIntegratorName-Value",
                parser_name="EXAMPLE-parserName-Value",
                parser_field_sequence=939,
                structured_column_info="EXAMPLE-structuredColumnInfo-Value")],
        footer_content="EXAMPLE-footerContent-Value",
        header_content="EXAMPLE-headerContent-Value",
        name="EXAMPLE-name-Value",
        is_default=False,
        is_single_line_content=False,
        is_system=False,
        language="EXAMPLE-language-Value",
        time_updated=datetime.strptime(
            "2048-06-14T00:15:55.875Z",
            "%Y-%m-%dT%H:%M:%S.%fZ"),
        log_type_test_request_version=555,
        parser_ignoreline_characters="EXAMPLE-parserIgnorelineCharacters-Value",
        is_hidden=False,
        parser_sequence=753,
        parser_timezone="EXAMPLE-parserTimezone-Value",
        parser_filter=oci.log_analytics.models.LogAnalyticsParserFilter(
            id="ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
            agent_version="EXAMPLE-agentVersion-Value",
            is_in_use=149,
            operating_system="EXAMPLE-operatingSystem-Value",
            parser_id=652,
            version="EXAMPLE-version-Value"),
        is_parser_written_once=False,
        parser_functions=[
            oci.log_analytics.models.LogAnalyticsParserFunction(
                parser_meta_plugin=oci.log_analytics.models.LogAnalyticsParserMetaPlugin(
                    meta_plugin_parameters=[
                        oci.log_analytics.models.LogAnalyticsParserMetaPluginParameter(
                            description="EXAMPLE-description-Value",
                            name="EXAMPLE-name-Value",
                            is_mandatory=False,
                            is_repeatable=False,
                            plugin_name="EXAMPLE-pluginName-Value",
                            type="EXAMPLE-type-Value")],
                    description="EXAMPLE-description-Value",
                    display_name="EXAMPLE-displayName-Value",
                    name="EXAMPLE-name-Value"),
                parser_function_id=351,
                parser_function_name="EXAMPLE-parserFunctionName-Value",
                is_enabled=False,
                is_system=True,
                parser_id=514,
                parser_name="EXAMPLE-parserName-Value",
                parser_meta_plugin_name="EXAMPLE-parserMetaPluginName-Value",
                parser_function_priority=478,
                parser_function_parameters=[
                                        oci.log_analytics.models.LogAnalyticsParserFunctionParameter(
                                            parser_function_id=859,
                                            parser_function_parameter_name="EXAMPLE-parserFunctionParameterName-Value",
                                            parser_function_parameter_id=449,
                                            parser_meta_plugin_parameter_name="EXAMPLE-parserMetaPluginParameterName-Value",
                                            parser_meta_plugin_parameter_value="EXAMPLE-parserMetaPluginParameterValue-Value",
                                            parser_name="EXAMPLE-parserName-Value",
                                            parser_meta_plugin_parameter=oci.log_analytics.models.LogAnalyticsParserMetaPluginParameter(
                                                description="EXAMPLE-description-Value",
                                                name="EXAMPLE-name-Value",
                                                is_mandatory=False,
                                                is_repeatable=False,
                                                plugin_name="EXAMPLE-pluginName-Value",
                                                type="EXAMPLE-type-Value"))])],
        sources_count=953,
        sources=[
            oci.log_analytics.models.LogAnalyticsSource(
                label_conditions=[
                    oci.log_analytics.models.LogAnalyticsSourceLabelCondition(
                        message="EXAMPLE-message-Value",
                        is_visible=True,
                        block_condition_field="EXAMPLE-blockConditionField-Value",
                        block_condition_operator="EXAMPLE-blockConditionOperator-Value",
                        block_condition_value="EXAMPLE-blockConditionValue-Value",
                        label_condition_value="EXAMPLE-labelConditionValue-Value",
                        label_condition_values=["EXAMPLE--Value"],
                        content_example="EXAMPLE-contentExample-Value",
                        is_enabled=True,
                        field_name="EXAMPLE-fieldName-Value",
                        label_condition_id=683,
                        is_system=True,
                        label_condition_operator="EXAMPLE-labelConditionOperator-Value",
                        source_id=772,
                        label_display_name="EXAMPLE-labelDisplayName-Value",
                        storage_field="EXAMPLE-storageField-Value",
                        label_name="EXAMPLE-labelName-Value",
                        is_inline_label_existing_in_database=False)],
                association_count=78,
                association_entity=[
                    oci.log_analytics.models.LogAnalyticsAssociation(
                        failure_message="EXAMPLE-failureMessage-Value",
                        agent_id="ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value",
                        time_last_attempted=datetime.strptime(
                            "2031-05-25T23:10:19.648Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"),
                        retry_count=933,
                        source_name="EXAMPLE-sourceName-Value",
                        source_display_name="EXAMPLE-sourceDisplayName-Value",
                        source_type_name="EXAMPLE-sourceTypeName-Value",
                        life_cycle_state="IN_PROGRESS",
                        entity_id="ocid1.test.oc1..<unique_ID>EXAMPLE-entityId-Value",
                        entity_name="EXAMPLE-entityName-Value",
                        entity_type_name="EXAMPLE-entityTypeName-Value",
                        host="EXAMPLE-host-Value",
                        agent_entity_name="EXAMPLE-agentEntityName-Value",
                        entity_type_display_name="EXAMPLE-entityTypeDisplayName-Value",
                        log_group_id="ocid1.test.oc1..<unique_ID>EXAMPLE-logGroupId-Value",
                        log_group_name="EXAMPLE-logGroupName-Value",
                        log_group_compartment="EXAMPLE-logGroupCompartment-Value")],
                data_filter_definitions=[
                    oci.log_analytics.models.LogAnalyticsSourceDataFilter(
                        description="EXAMPLE-description-Value",
                        display_name="EXAMPLE-displayName-Value",
                        edit_version=986,
                        is_enabled=True,
                        field_name="EXAMPLE-fieldName-Value",
                        hash_type=351,
                        data_filter_id=528,
                        is_system=True,
                        match_regular_expression="EXAMPLE-matchRegularExpression-Value",
                        order=615,
                        path="EXAMPLE-path-Value",
                        replacement_string="EXAMPLE-replacementString-Value",
                        source_id=323,
                        filter_type="DROP_STRING")],
                database_credential="EXAMPLE-databaseCredential-Value",
                extended_field_definitions=[
                    oci.log_analytics.models.LogAnalyticsSourceExtendedFieldDefinition(
                        field=oci.log_analytics.models.LogAnalyticsField(
                            cee_alias="EXAMPLE-ceeAlias-Value",
                            data_type="EXAMPLE-dataType-Value",
                            regular_expression="EXAMPLE-regularExpression-Value",
                            description="EXAMPLE-description-Value",
                            display_name="EXAMPLE-displayName-Value",
                            edit_version=411,
                            facet_priority=509,
                            name="EXAMPLE-name-Value",
                            is_facet_eligible=False,
                            is_high_cardinality=True,
                            is_large_data=True,
                            is_multi_valued=True,
                            is_primary=False,
                            is_system=True,
                            is_summarizable=False,
                            mapped_value="EXAMPLE-mappedValue-Value",
                            is_metric_key_eligible=False,
                            is_metric_value_eligible=False,
                            range_facet_eligible=919,
                            is_table_eligible=True,
                            unit_type="EXAMPLE-unitType-Value"),
                        display_regular_expression="EXAMPLE-displayRegularExpression-Value",
                        extended_fields=[
                            oci.log_analytics.models.LogAnalyticsExtendedField(
                                field=oci.log_analytics.models.LogAnalyticsField(
                                    cee_alias="EXAMPLE-ceeAlias-Value",
                                    data_type="EXAMPLE-dataType-Value",
                                    regular_expression="EXAMPLE-regularExpression-Value",
                                    description="EXAMPLE-description-Value",
                                    display_name="EXAMPLE-displayName-Value",
                                    edit_version=694,
                                    facet_priority=344,
                                    name="EXAMPLE-name-Value",
                                    is_facet_eligible=False,
                                    is_high_cardinality=False,
                                    is_large_data=False,
                                    is_multi_valued=False,
                                    is_primary=False,
                                    is_system=True,
                                    is_summarizable=True,
                                    mapped_value="EXAMPLE-mappedValue-Value",
                                    is_metric_key_eligible=False,
                                    is_metric_value_eligible=True,
                                    range_facet_eligible=373,
                                    is_table_eligible=False,
                                    unit_type="EXAMPLE-unitType-Value"),
                                extended_field_definition_id=445,
                                field_name="EXAMPLE-fieldName-Value",
                                field_display_name="EXAMPLE-fieldDisplayName-Value",
                                saved_regular_expression_name="EXAMPLE-savedRegularExpressionName-Value",
                                extended_field_id=739)],
                        base_field_name="EXAMPLE-baseFieldName-Value",
                        base_field_log_text="EXAMPLE-baseFieldLogText-Value",
                        condition_data_type="EXAMPLE-conditionDataType-Value",
                        condition_field="EXAMPLE-conditionField-Value",
                        condition_operator="EXAMPLE-conditionOperator-Value",
                        condition_value="EXAMPLE-conditionValue-Value",
                        converted_regular_expression="EXAMPLE-convertedRegularExpression-Value",
                        is_enabled=False,
                        extended_field_definition_id=431,
                        is_system=False,
                        regular_expression="EXAMPLE-regularExpression-Value",
                        source_id=975,
                        time_updated=datetime.strptime(
                            "2001-04-19T16:41:34.381Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"))],
                is_for_cloud=True,
                labels=[
                    oci.log_analytics.models.LogAnalyticsLabelView(
                        aliases=[
                            oci.log_analytics.models.LogAnalyticsLabelAlias(
                                alias="EXAMPLE-alias-Value",
                                alias_display_name="EXAMPLE-aliasDisplayName-Value",
                                is_system=False,
                                display_name="EXAMPLE-displayName-Value",
                                name="EXAMPLE-name-Value",
                                priority="HIGH")],
                        count_usage_in_alert_rule=678,
                        count_usage_in_source=204,
                        id="EXAMPLE-id-Value",
                        suggest_type=622,
                        description="EXAMPLE-description-Value",
                        display_name="EXAMPLE-displayName-Value",
                        edit_version=44,
                        impact="EXAMPLE-impact-Value",
                        is_system=False,
                        name="EXAMPLE-name-Value",
                        priority="HIGH",
                        recommendation="EXAMPLE-recommendation-Value",
                        type=63,
                        is_user_deleted=False)],
                metric_definitions=[
                    oci.log_analytics.models.LogAnalyticsMetric(
                        aggregation_field="EXAMPLE-aggregationField-Value",
                        bucket_metadata="EXAMPLE-bucketMetadata-Value",
                        clock_period="EXAMPLE-clockPeriod-Value",
                        description="EXAMPLE-description-Value",
                        edit_version=738,
                        field_name="EXAMPLE-fieldName-Value",
                        field_values=["EXAMPLE--Value"],
                        grouping_field="EXAMPLE-groupingField-Value",
                        is_enabled=False,
                        is_system=True,
                        display_name="EXAMPLE-displayName-Value",
                        metric_reference=315,
                        name="EXAMPLE-name-Value",
                        metric_type="COUNT_DISTRIBUTION",
                        is_metric_source_enabled=True,
                        operator="CONTAINS_IGNORE_CASE",
                        entity_type="EXAMPLE-entityType-Value",
                        time_updated=datetime.strptime(
                            "2013-11-02T00:01:53.583Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"),
                        unit_type="EXAMPLE-unitType-Value",
                        is_user_customized=False)],
                metrics=[
                    oci.log_analytics.models.LogAnalyticsSourceMetric(
                        is_metric_source_enabled=True,
                        metric_name="EXAMPLE-metricName-Value",
                        source_name="EXAMPLE-sourceName-Value",
                        entity_type="EXAMPLE-entityType-Value")],
                parameters=[
                    oci.log_analytics.models.LogAnalyticsParameter(
                        default_value="EXAMPLE-defaultValue-Value",
                        description="EXAMPLE-description-Value",
                        is_active=False,
                        name="EXAMPLE-name-Value",
                        source_id=100)],
                pattern_count=159,
                patterns=[
                    oci.log_analytics.models.LogAnalyticsSourcePattern(
                        converted_text="EXAMPLE-convertedText-Value",
                        db_parser_id=287,
                        db_pattern_date_time_columns="EXAMPLE-dbPatternDateTimeColumns-Value",
                        db_pattern_date_time_field="EXAMPLE-dbPatternDateTimeField-Value",
                        db_pattern_sequence_column="EXAMPLE-dbPatternSequenceColumn-Value",
                        fields=[
                            oci.log_analytics.models.LogAnalyticsParserField(
                                field=oci.log_analytics.models.LogAnalyticsField(
                                    cee_alias="EXAMPLE-ceeAlias-Value",
                                    data_type="EXAMPLE-dataType-Value",
                                    regular_expression="EXAMPLE-regularExpression-Value",
                                    description="EXAMPLE-description-Value",
                                    display_name="EXAMPLE-displayName-Value",
                                    edit_version=748,
                                    facet_priority=424,
                                    name="EXAMPLE-name-Value",
                                    is_facet_eligible=False,
                                    is_high_cardinality=True,
                                    is_large_data=False,
                                    is_multi_valued=False,
                                    is_primary=True,
                                    is_system=True,
                                    is_summarizable=True,
                                    mapped_value="EXAMPLE-mappedValue-Value",
                                    is_metric_key_eligible=False,
                                    is_metric_value_eligible=False,
                                    range_facet_eligible=342,
                                    is_table_eligible=True,
                                    unit_type="EXAMPLE-unitType-Value"),
                                parser_field_id=755,
                                parser_field_expression="EXAMPLE-parserFieldExpression-Value",
                                parser_field_name="EXAMPLE-parserFieldName-Value",
                                storage_field_name="EXAMPLE-storageFieldName-Value",
                                parser_field_integrator_name="EXAMPLE-parserFieldIntegratorName-Value",
                                parser_name="EXAMPLE-parserName-Value",
                                parser_field_sequence=875,
                                structured_column_info="EXAMPLE-structuredColumnInfo-Value")],
                        is_include=False,
                        is_default=False,
                        pattern_filter=oci.log_analytics.models.LogAnalyticsPatternFilter(
                            agent_version="EXAMPLE-agentVersion-Value",
                            is_in_use=False,
                            operating_system="EXAMPLE-operatingSystem-Value",
                            pattern_id=366,
                            source_id=127,
                            version="EXAMPLE-version-Value"),
                        alias="EXAMPLE-alias-Value",
                        description="EXAMPLE-description-Value",
                        is_enabled=True,
                        pattern_id=987,
                        is_system=True,
                        source_id=287,
                        is_agent_warning_suppressed=False,
                        pattern_text="EXAMPLE-patternText-Value",
                        pattern_type=172,
                        entity_type=["EXAMPLE--Value"])],
                description="EXAMPLE-description-Value",
                display_name="EXAMPLE-displayName-Value",
                edit_version=4,
                functions=[
                    oci.log_analytics.models.LogAnalyticsSourceFunction(
                        arguments=[
                            oci.log_analytics.models.LogAnalyticsMetaFunctionArgument(
                                is_override_output_fields=False,
                                argument_display_name="EXAMPLE-argumentDisplayName-Value",
                                argument_example="EXAMPLE-argumentExample-Value",
                                argument_service="EXAMPLE-argumentService-Value",
                                argument_data_type="EXAMPLE-argumentDataType-Value",
                                argument_description="EXAMPLE-argumentDescription-Value",
                                argument_name="EXAMPLE-argumentName-Value",
                                argument_order=875,
                                argument_type=898,
                                argument_id=934,
                                argument_lookup_column="EXAMPLE-argumentLookupColumn-Value",
                                argument_lookup_column_position=193,
                                argument_value="EXAMPLE-argumentValue-Value",
                                argument_reference="EXAMPLE-argumentReference-Value")],
                        is_enabled=True,
                        function=oci.log_analytics.models.LogAnalyticsMetaFunction(
                            meta_function_argument=[
                                oci.log_analytics.models.LogAnalyticsMetaFunctionArgument(
                                    is_override_output_fields=True,
                                    argument_display_name="EXAMPLE-argumentDisplayName-Value",
                                    argument_example="EXAMPLE-argumentExample-Value",
                                    argument_service="EXAMPLE-argumentService-Value",
                                    argument_data_type="EXAMPLE-argumentDataType-Value",
                                    argument_description="EXAMPLE-argumentDescription-Value",
                                    argument_name="EXAMPLE-argumentName-Value",
                                    argument_order=314,
                                    argument_type=183,
                                    argument_id=137,
                                    argument_lookup_column="EXAMPLE-argumentLookupColumn-Value",
                                    argument_lookup_column_position=873,
                                    argument_value="EXAMPLE-argumentValue-Value",
                                    argument_reference="EXAMPLE-argumentReference-Value")],
                            component="EXAMPLE-component-Value",
                            description="EXAMPLE-description-Value",
                            edit_version=371,
                            meta_function_id=646,
                            java_class_name="EXAMPLE-javaClassName-Value",
                            name="EXAMPLE-name-Value"),
                        function_name="LOOKUP",
                        function_reference="EXAMPLE-functionReference-Value",
                        source_reference="EXAMPLE-sourceReference-Value",
                        features=["EXAMPLE--Value"],
                        function_id=43,
                        order=440,
                        is_system=False,
                        lookup_column="EXAMPLE-lookupColumn-Value",
                        lookup_column_position=397,
                        lookup_display_name="EXAMPLE-lookupDisplayName-Value",
                        lookup_mode=489,
                        lookup_table="EXAMPLE-lookupTable-Value",
                        source_id=521)],
                source_id=543,
                name="EXAMPLE-name-Value",
                is_secure_content=False,
                is_system=False,
                is_auto_association_enabled=False,
                is_auto_association_override=False,
                rule_id=396,
                type_name="EXAMPLE-typeName-Value",
                type_display_name="EXAMPLE-typeDisplayName-Value",
                warning_config=635,
                metadata_fields=[
                    oci.log_analytics.models.LogAnalyticsSourceMetadataField(
                        field_name="EXAMPLE-fieldName-Value",
                        is_enabled=False,
                        is_system=True,
                        key="EXAMPLE-key-Value",
                        source_name="EXAMPLE-sourceName-Value")],
                label_definitions=[
                    oci.log_analytics.models.LogAnalyticsLabelDefinition(
                        edit_version=510,
                        is_system=False,
                        source_id=142,
                        label_name="EXAMPLE-labelName-Value")],
                entity_types=[
                    oci.log_analytics.models.LogAnalyticsSourceEntityType(
                        source_id=180,
                        entity_type="EXAMPLE-entityType-Value",
                        entity_type_category="EXAMPLE-entityTypeCategory-Value",
                        entity_type_display_name="EXAMPLE-entityTypeDisplayName-Value")],
                is_timezone_override=True,
                time_updated=datetime.strptime(
                    "2008-01-17T15:01:25.752Z",
                    "%Y-%m-%dT%H:%M:%S.%fZ"),
                event_types=[
                    oci.log_analytics.models.EventType(
                        event_type_name="EXAMPLE-eventTypeName-Value",
                        spec_version="EXAMPLE-specVersion-Value",
                        is_enabled=False,
                        is_system=True,
                        time_updated=datetime.strptime(
                            "2010-09-01T19:58:07.698Z",
                            "%Y-%m-%dT%H:%M:%S.%fZ"))],
                categories=[
                    oci.log_analytics.models.LogAnalyticsCategory(
                        name="EXAMPLE-name-Value",
                        description="EXAMPLE-description-Value",
                        display_name="EXAMPLE-displayName-Value",
                        type="EXAMPLE-type-Value",
                        is_system=False)])],
        should_tokenize_original_text=False,
        field_delimiter="EXAMPLE-fieldDelimiter-Value",
        field_qualifier="EXAMPLE-fieldQualifier-Value",
        type="JSON",
        is_user_deleted=False,
        is_namespace_aware=False,
        categories=[
            oci.log_analytics.models.LogAnalyticsCategory(
                name="EXAMPLE-name-Value",
                description="EXAMPLE-description-Value",
                display_name="EXAMPLE-displayName-Value",
                type="EXAMPLE-type-Value",
                is_system=True)]),
    parser_type="JSON",
    opc_retry_token="EXAMPLE-opcRetryToken-Value",
    opc_request_id="TD7GQOHJ3VDLHVCCUIIS<unique_ID>")

# Get the data from response
print(extract_structured_log_field_paths_response.data)