/** 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).
*/
import com.oracle.bmc.ConfigFileReader;
import com.oracle.bmc.auth.AuthenticationDetailsProvider;
import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider;
import com.oracle.bmc.loganalytics.LogAnalyticsClient;
import com.oracle.bmc.loganalytics.model.*;
import com.oracle.bmc.loganalytics.requests.*;
import com.oracle.bmc.loganalytics.responses.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Date;
import java.util.UUID;
import java.util.Arrays;
public class ExtractStructuredLogFieldPathsExample {
public static void main(String[] args) throws Exception {
/**
* Create a default authentication provider that uses the DEFAULT
* profile in the configuration file.
* Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.
*/
final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault();
final AuthenticationDetailsProvider provider = new ConfigFileAuthenticationDetailsProvider(configFile);
/* Create a service client */
LogAnalyticsClient client = LogAnalyticsClient.builder().build(provider);
/* Create a request and dependent object(s). */
LogAnalyticsParser logAnalyticsParser = LogAnalyticsParser.builder()
.content("EXAMPLE-content-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(855L)
.encoding("EXAMPLE-encoding-Value")
.exampleContent("EXAMPLE-exampleContent-Value")
.fieldMaps(new ArrayList<>(Arrays.asList(LogAnalyticsParserField.builder()
.field(LogAnalyticsField.builder()
.ceeAlias("EXAMPLE-ceeAlias-Value")
.dataType("EXAMPLE-dataType-Value")
.regularExpression("EXAMPLE-regularExpression-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(244L)
.facetPriority(114L)
.name("EXAMPLE-name-Value")
.isFacetEligible(true)
.isHighCardinality(false)
.isLargeData(true)
.isMultiValued(false)
.isPrimary(false)
.isSystem(false)
.isSummarizable(true)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(true)
.isMetricValueEligible(false)
.rangeFacetEligible(507L)
.isTableEligible(true)
.unitType("EXAMPLE-unitType-Value")
.timeUpdated(new Date("Thu May 03 20:37:32 UTC 2040"))
.isKeepDuplicates(true).build())
.parserFieldId(136L)
.parserFieldExpression("EXAMPLE-parserFieldExpression-Value")
.parserFieldName("EXAMPLE-parserFieldName-Value")
.storageFieldName("EXAMPLE-storageFieldName-Value")
.parserFieldIntegratorName("EXAMPLE-parserFieldIntegratorName-Value")
.parserName("EXAMPLE-parserName-Value")
.parserFieldSequence(120L)
.structuredColumnInfo("EXAMPLE-structuredColumnInfo-Value")
.actions(new ArrayList<>(Arrays.asList(ParserAction.builder()
.name("EXAMPLE-name-Value")
.order(428).build()))).build())))
.footerContent("EXAMPLE-footerContent-Value")
.headerContent("EXAMPLE-headerContent-Value")
.name("EXAMPLE-name-Value")
.isDefault(true)
.isSingleLineContent(false)
.isSystem(false)
.language("EXAMPLE-language-Value")
.timeUpdated(new Date("Fri May 29 15:16:34 UTC 2009"))
.logTypeTestRequestVersion(793)
.parserIgnorelineCharacters("EXAMPLE-parserIgnorelineCharacters-Value")
.isHidden(false)
.parserSequence(625)
.parserTimezone("EXAMPLE-parserTimezone-Value")
.parserFilter(LogAnalyticsParserFilter.builder()
.id("ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value")
.agentVersion("EXAMPLE-agentVersion-Value")
.isInUse(722L)
.operatingSystem("EXAMPLE-operatingSystem-Value")
.parserId(620L)
.version("EXAMPLE-version-Value").build())
.isParserWrittenOnce(false)
.parserFunctions(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunction.builder()
.parserMetaPlugin(LogAnalyticsParserMetaPlugin.builder()
.metaPluginParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserMetaPluginParameter.builder()
.description("EXAMPLE-description-Value")
.name("EXAMPLE-name-Value")
.isMandatory(true)
.isRepeatable(true)
.pluginName("EXAMPLE-pluginName-Value")
.type("EXAMPLE-type-Value").build())))
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.name("EXAMPLE-name-Value").build())
.parserFunctionId(263L)
.parserFunctionName("EXAMPLE-parserFunctionName-Value")
.isEnabled(false)
.isSystem(true)
.parserId(998L)
.parserName("EXAMPLE-parserName-Value")
.parserMetaPluginName("EXAMPLE-parserMetaPluginName-Value")
.parserFunctionPriority(274L)
.parserFunctionParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunctionParameter.builder()
.parserFunctionId(783L)
.parserFunctionParameterName("EXAMPLE-parserFunctionParameterName-Value")
.parserFunctionParameterId(772L)
.parserMetaPluginParameterName("EXAMPLE-parserMetaPluginParameterName-Value")
.parserMetaPluginParameterValue("EXAMPLE-parserMetaPluginParameterValue-Value")
.parserName("EXAMPLE-parserName-Value")
.parserMetaPluginParameter(LogAnalyticsParserMetaPluginParameter.builder()
.description("EXAMPLE-description-Value")
.name("EXAMPLE-name-Value")
.isMandatory(true)
.isRepeatable(true)
.pluginName("EXAMPLE-pluginName-Value")
.type("EXAMPLE-type-Value").build()).build()))).build())))
.sourcesCount(859L)
.sources(new ArrayList<>(Arrays.asList(LogAnalyticsSource.builder()
.labelConditions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceLabelCondition.builder()
.conditionString("EXAMPLE-conditionString-Value")
.conditionBlock(ConditionBlock.builder()
.conditionBlocksOperator(ConditionBlock.ConditionBlocksOperator.Or)
.fieldName("EXAMPLE-fieldName-Value")
.labelConditionOperator("EXAMPLE-labelConditionOperator-Value")
.labelConditionValue("EXAMPLE-labelConditionValue-Value")
.labelConditionValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value"))).build())
.message("EXAMPLE-message-Value")
.isVisible(false)
.blockConditionField("EXAMPLE-blockConditionField-Value")
.blockConditionOperator("EXAMPLE-blockConditionOperator-Value")
.blockConditionValue("EXAMPLE-blockConditionValue-Value")
.labelConditionValue("EXAMPLE-labelConditionValue-Value")
.labelConditionValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.contentExample("EXAMPLE-contentExample-Value")
.isEnabled(false)
.fieldName("EXAMPLE-fieldName-Value")
.labelConditionId(828L)
.isSystem(false)
.labelConditionOperator("EXAMPLE-labelConditionOperator-Value")
.sourceId(257L)
.labelDisplayName("EXAMPLE-labelDisplayName-Value")
.storageField("EXAMPLE-storageField-Value")
.labelName("EXAMPLE-labelName-Value")
.isInlineLabelExistingInDatabase(false).build())))
.associationCount(520)
.associationEntity(new ArrayList<>(Arrays.asList(LogAnalyticsAssociation.builder()
.failureMessage("EXAMPLE-failureMessage-Value")
.agentId("ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value")
.timeLastAttempted(new Date("Mon Dec 23 00:49:49 UTC 2019"))
.retryCount(383L)
.sourceName("EXAMPLE-sourceName-Value")
.sourceDisplayName("EXAMPLE-sourceDisplayName-Value")
.sourceTypeName("EXAMPLE-sourceTypeName-Value")
.lifeCycleState(LogAnalyticsAssociation.LifeCycleState.Succeeded)
.entityId("ocid1.test.oc1..<unique_ID>EXAMPLE-entityId-Value")
.entityName("EXAMPLE-entityName-Value")
.entityTypeName("EXAMPLE-entityTypeName-Value")
.host("EXAMPLE-host-Value")
.agentEntityName("EXAMPLE-agentEntityName-Value")
.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value")
.logGroupId("ocid1.test.oc1..<unique_ID>EXAMPLE-logGroupId-Value")
.logGroupName("EXAMPLE-logGroupName-Value")
.logGroupCompartment("EXAMPLE-logGroupCompartment-Value")
.associationProperties(new ArrayList<>(Arrays.asList(AssociationProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value")
.patterns(new ArrayList<>(Arrays.asList(PatternOverride.builder()
.id("ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value")
.value("EXAMPLE-value-Value")
.effectiveLevel("EXAMPLE-effectiveLevel-Value").build()))).build()))).build())))
.dataFilterDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceDataFilter.builder()
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(55L)
.isEnabled(true)
.fieldName("EXAMPLE-fieldName-Value")
.hashType(91)
.dataFilterId(147L)
.isSystem(false)
.matchRegularExpression("EXAMPLE-matchRegularExpression-Value")
.order(119L)
.path("EXAMPLE-path-Value")
.replacementString("EXAMPLE-replacementString-Value")
.sourceId(64L)
.filterType(LogAnalyticsSourceDataFilter.FilterType.Mask).build())))
.databaseCredential("EXAMPLE-databaseCredential-Value")
.extendedFieldDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceExtendedFieldDefinition.builder()
.field(LogAnalyticsField.builder()
.ceeAlias("EXAMPLE-ceeAlias-Value")
.dataType("EXAMPLE-dataType-Value")
.regularExpression("EXAMPLE-regularExpression-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(655L)
.facetPriority(246L)
.name("EXAMPLE-name-Value")
.isFacetEligible(false)
.isHighCardinality(true)
.isLargeData(true)
.isMultiValued(true)
.isPrimary(true)
.isSystem(false)
.isSummarizable(false)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(false)
.isMetricValueEligible(false)
.rangeFacetEligible(435L)
.isTableEligible(false)
.unitType("EXAMPLE-unitType-Value")
.timeUpdated(new Date("Tue Dec 11 18:28:16 UTC 2029"))
.isKeepDuplicates(true).build())
.displayRegularExpression("EXAMPLE-displayRegularExpression-Value")
.extendedFields(new ArrayList<>(Arrays.asList(LogAnalyticsExtendedField.builder()
.field(LogAnalyticsField.builder()
.ceeAlias("EXAMPLE-ceeAlias-Value")
.dataType("EXAMPLE-dataType-Value")
.regularExpression("EXAMPLE-regularExpression-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(389L)
.facetPriority(393L)
.name("EXAMPLE-name-Value")
.isFacetEligible(false)
.isHighCardinality(false)
.isLargeData(false)
.isMultiValued(false)
.isPrimary(true)
.isSystem(false)
.isSummarizable(true)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(false)
.isMetricValueEligible(true)
.rangeFacetEligible(446L)
.isTableEligible(false)
.unitType("EXAMPLE-unitType-Value")
.timeUpdated(new Date("Sun Jun 20 16:19:30 UTC 2004"))
.isKeepDuplicates(false).build())
.extendedFieldDefinitionId(264L)
.fieldName("EXAMPLE-fieldName-Value")
.fieldDisplayName("EXAMPLE-fieldDisplayName-Value")
.savedRegularExpressionName("EXAMPLE-savedRegularExpressionName-Value")
.extendedFieldId(69L).build())))
.baseFieldName("EXAMPLE-baseFieldName-Value")
.baseFieldLogText("EXAMPLE-baseFieldLogText-Value")
.conditionDataType("EXAMPLE-conditionDataType-Value")
.conditionField("EXAMPLE-conditionField-Value")
.conditionOperator("EXAMPLE-conditionOperator-Value")
.conditionValue("EXAMPLE-conditionValue-Value")
.convertedRegularExpression("EXAMPLE-convertedRegularExpression-Value")
.isEnabled(true)
.extendedFieldDefinitionId(624L)
.isSystem(true)
.regularExpression("EXAMPLE-regularExpression-Value")
.sourceId(809L)
.timeUpdated(new Date("Tue Mar 27 15:48:08 UTC 2046"))
.conditionString("EXAMPLE-conditionString-Value")
.conditionBlock(GenericConditionBlock.builder()
.conditionBlocksOperator(GenericConditionBlock.ConditionBlocksOperator.And)
.name("EXAMPLE-name-Value")
.operator("EXAMPLE-operator-Value")
.value("EXAMPLE-value-Value")
.values(new ArrayList<>(Arrays.asList("EXAMPLE--Value"))).build()).build())))
.isForCloud(true)
.labels(new ArrayList<>(Arrays.asList(LogAnalyticsLabelView.builder()
.aliases(new ArrayList<>(Arrays.asList(LogAnalyticsLabelAlias.builder()
.alias("EXAMPLE-alias-Value")
.aliasDisplayName("EXAMPLE-aliasDisplayName-Value")
.isSystem(false)
.displayName("EXAMPLE-displayName-Value")
.name("EXAMPLE-name-Value")
.priority(LogAnalyticsLabelAlias.Priority.High).build())))
.countUsageInAlertRule(744L)
.countUsageInSource(782L)
.id("EXAMPLE-id-Value")
.suggestType(631L)
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(833L)
.impact("EXAMPLE-impact-Value")
.isSystem(false)
.name("EXAMPLE-name-Value")
.priority(LogAnalyticsLabelView.Priority.Low)
.recommendation("EXAMPLE-recommendation-Value")
.type(66L)
.isUserDeleted(true).build())))
.metricDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsMetric.builder()
.aggregationField("EXAMPLE-aggregationField-Value")
.bucketMetadata("EXAMPLE-bucketMetadata-Value")
.clockPeriod("EXAMPLE-clockPeriod-Value")
.description("EXAMPLE-description-Value")
.editVersion(297L)
.fieldName("EXAMPLE-fieldName-Value")
.fieldValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.groupingField("EXAMPLE-groupingField-Value")
.isEnabled(true)
.isSystem(true)
.displayName("EXAMPLE-displayName-Value")
.metricReference(731L)
.name("EXAMPLE-name-Value")
.metricType(LogAnalyticsMetric.MetricType.Sum)
.isMetricSourceEnabled(false)
.operator(LogAnalyticsMetric.Operator.NotNull)
.entityType("EXAMPLE-entityType-Value")
.timeUpdated(new Date("Fri Jan 17 19:22:39 UTC 2020"))
.unitType("EXAMPLE-unitType-Value")
.isUserCustomized(false).build())))
.metrics(new ArrayList<>(Arrays.asList(LogAnalyticsSourceMetric.builder()
.isMetricSourceEnabled(false)
.metricName("EXAMPLE-metricName-Value")
.sourceName("EXAMPLE-sourceName-Value")
.entityType("EXAMPLE-entityType-Value").build())))
.parameters(new ArrayList<>(Arrays.asList(LogAnalyticsParameter.builder()
.defaultValue("EXAMPLE-defaultValue-Value")
.description("EXAMPLE-description-Value")
.isActive(false)
.name("EXAMPLE-name-Value")
.sourceId(187L).build())))
.patternCount(957)
.patterns(new ArrayList<>(Arrays.asList(LogAnalyticsSourcePattern.builder()
.convertedText("EXAMPLE-convertedText-Value")
.dbParserId(771L)
.dbPatternDateTimeColumns("EXAMPLE-dbPatternDateTimeColumns-Value")
.dbPatternDateTimeField("EXAMPLE-dbPatternDateTimeField-Value")
.dbPatternSequenceColumn("EXAMPLE-dbPatternSequenceColumn-Value")
.fields(new ArrayList<>(Arrays.asList(LogAnalyticsParserField.builder()
.field(LogAnalyticsField.builder()
.ceeAlias("EXAMPLE-ceeAlias-Value")
.dataType("EXAMPLE-dataType-Value")
.regularExpression("EXAMPLE-regularExpression-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(905L)
.facetPriority(285L)
.name("EXAMPLE-name-Value")
.isFacetEligible(false)
.isHighCardinality(false)
.isLargeData(true)
.isMultiValued(true)
.isPrimary(true)
.isSystem(false)
.isSummarizable(true)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(false)
.isMetricValueEligible(false)
.rangeFacetEligible(715L)
.isTableEligible(true)
.unitType("EXAMPLE-unitType-Value")
.timeUpdated(new Date("Thu Feb 13 15:43:44 UTC 2003"))
.isKeepDuplicates(false).build())
.parserFieldId(395L)
.parserFieldExpression("EXAMPLE-parserFieldExpression-Value")
.parserFieldName("EXAMPLE-parserFieldName-Value")
.storageFieldName("EXAMPLE-storageFieldName-Value")
.parserFieldIntegratorName("EXAMPLE-parserFieldIntegratorName-Value")
.parserName("EXAMPLE-parserName-Value")
.parserFieldSequence(406L)
.structuredColumnInfo("EXAMPLE-structuredColumnInfo-Value")
.actions(new ArrayList<>(Arrays.asList(ParserAction.builder()
.name("EXAMPLE-name-Value")
.order(125).build()))).build())))
.isInclude(true)
.isDefault(true)
.patternFilter(LogAnalyticsPatternFilter.builder()
.agentVersion("EXAMPLE-agentVersion-Value")
.isInUse(true)
.operatingSystem("EXAMPLE-operatingSystem-Value")
.patternId(69L)
.sourceId(517L)
.version("EXAMPLE-version-Value").build())
.alias("EXAMPLE-alias-Value")
.description("EXAMPLE-description-Value")
.isEnabled(true)
.patternId(157L)
.isSystem(true)
.sourceId(126L)
.isAgentWarningSuppressed(false)
.patternText("EXAMPLE-patternText-Value")
.patternType(990L)
.entityType(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.patternProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())))
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(126L)
.functions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceFunction.builder()
.arguments(new ArrayList<>(Arrays.asList(LogAnalyticsMetaFunctionArgument.builder()
.isOverrideOutputFields(false)
.argumentDisplayName("EXAMPLE-argumentDisplayName-Value")
.argumentExample("EXAMPLE-argumentExample-Value")
.argumentService("EXAMPLE-argumentService-Value")
.argumentDataType("EXAMPLE-argumentDataType-Value")
.argumentDescription("EXAMPLE-argumentDescription-Value")
.argumentName("EXAMPLE-argumentName-Value")
.argumentOrder(996L)
.argumentType(184L)
.argumentId(332L)
.argumentLookupColumn("EXAMPLE-argumentLookupColumn-Value")
.argumentLookupColumnPosition(421L)
.argumentValue("EXAMPLE-argumentValue-Value")
.argumentReference("EXAMPLE-argumentReference-Value").build())))
.isEnabled(false)
.function(LogAnalyticsMetaFunction.builder()
.metaFunctionArgument(new ArrayList<>(Arrays.asList(LogAnalyticsMetaFunctionArgument.builder()
.isOverrideOutputFields(false)
.argumentDisplayName("EXAMPLE-argumentDisplayName-Value")
.argumentExample("EXAMPLE-argumentExample-Value")
.argumentService("EXAMPLE-argumentService-Value")
.argumentDataType("EXAMPLE-argumentDataType-Value")
.argumentDescription("EXAMPLE-argumentDescription-Value")
.argumentName("EXAMPLE-argumentName-Value")
.argumentOrder(978L)
.argumentType(279L)
.argumentId(480L)
.argumentLookupColumn("EXAMPLE-argumentLookupColumn-Value")
.argumentLookupColumnPosition(970L)
.argumentValue("EXAMPLE-argumentValue-Value")
.argumentReference("EXAMPLE-argumentReference-Value").build())))
.component("EXAMPLE-component-Value")
.description("EXAMPLE-description-Value")
.editVersion(836L)
.metaFunctionId(309L)
.javaClassName("EXAMPLE-javaClassName-Value")
.name("EXAMPLE-name-Value").build())
.functionName(LogAnalyticsSourceFunction.FunctionName.Geolocation)
.functionReference("EXAMPLE-functionReference-Value")
.sourceReference("EXAMPLE-sourceReference-Value")
.features(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.functionId(831L)
.order(713L)
.isSystem(false)
.lookupColumn("EXAMPLE-lookupColumn-Value")
.lookupColumnPosition(919L)
.lookupDisplayName("EXAMPLE-lookupDisplayName-Value")
.lookupMode(210L)
.lookupTable("EXAMPLE-lookupTable-Value")
.sourceId(421L).build())))
.sourceId(565L)
.name("EXAMPLE-name-Value")
.isSecureContent(false)
.isSystem(true)
.isAutoAssociationEnabled(false)
.isAutoAssociationOverride(true)
.ruleId(898L)
.typeName("EXAMPLE-typeName-Value")
.typeDisplayName("EXAMPLE-typeDisplayName-Value")
.warningConfig(576L)
.metadataFields(new ArrayList<>(Arrays.asList(LogAnalyticsSourceMetadataField.builder()
.fieldName("EXAMPLE-fieldName-Value")
.isEnabled(false)
.isSystem(false)
.key("EXAMPLE-key-Value")
.sourceName("EXAMPLE-sourceName-Value").build())))
.labelDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsLabelDefinition.builder()
.editVersion(737L)
.isSystem(false)
.sourceId(768L)
.labelName("EXAMPLE-labelName-Value").build())))
.entityTypes(new ArrayList<>(Arrays.asList(LogAnalyticsSourceEntityType.builder()
.sourceId(559L)
.entityType("EXAMPLE-entityType-Value")
.entityTypeCategory("EXAMPLE-entityTypeCategory-Value")
.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value").build())))
.isTimezoneOverride(false)
.timeUpdated(new Date("Fri Aug 27 13:21:21 UTC 2032"))
.eventTypes(new ArrayList<>(Arrays.asList(EventType.builder()
.eventTypeName("EXAMPLE-eventTypeName-Value")
.specVersion("EXAMPLE-specVersion-Value")
.isEnabled(true)
.isSystem(false)
.timeUpdated(new Date("Sat Nov 18 13:47:40 UTC 2034")).build())))
.categories(new ArrayList<>(Arrays.asList(LogAnalyticsCategory.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.type("EXAMPLE-type-Value")
.isSystem(true).build())))
.endpoints(new ArrayList<>(Arrays.asList(LogListTypeEndpoint.builder()
.listEndpoint(LogListEndpoint.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.model("EXAMPLE-model-Value")
.endpointId(89L)
.request(EndpointRequest.builder()
.method(EndpointRequest.Method.Post)
.url("EXAMPLE-url-Value")
.contentType("EXAMPLE-contentType-Value")
.payload("EXAMPLE-payload-Value")
.headers(new ArrayList<>(Arrays.asList(NameValuePair.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build())))
.formParameters(new ArrayList<>(Arrays.asList(NameValuePair.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())
.response(EndpointResponse.builder()
.contentType("EXAMPLE-contentType-Value")
.example("EXAMPLE-example-Value").build())
.credentials(EndpointCredentials.builder()
.credentialType(EndpointCredentials.CredentialType.StaticToken)
.credentialName("EXAMPLE-credentialName-Value")
.credentialEndpoint(CredentialEndpoint.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.model("EXAMPLE-model-Value")
.endpointId(70L)
.response(EndpointResponse.builder()
.contentType("EXAMPLE-contentType-Value")
.example("EXAMPLE-example-Value").build())
.proxy(EndpointProxy.builder()
.url("EXAMPLE-url-Value")
.credentialName("EXAMPLE-credentialName-Value")
.credentialType(EndpointProxy.CredentialType.BasicAuth).build()).build()).build())
.proxy(EndpointProxy.builder()
.url("EXAMPLE-url-Value")
.credentialName("EXAMPLE-credentialName-Value")
.credentialType(EndpointProxy.CredentialType.BasicAuth).build())
.isEnabled(true)
.isSystem(false)
.endpointProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())
.logEndpoints(new ArrayList<>(Arrays.asList(LogEndpoint.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.model("EXAMPLE-model-Value")
.endpointId(345L)
.request(EndpointRequest.builder()
.method(EndpointRequest.Method.Get)
.url("EXAMPLE-url-Value")
.contentType("EXAMPLE-contentType-Value")
.payload("EXAMPLE-payload-Value")
.headers(new ArrayList<>(Arrays.asList(NameValuePair.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build())))
.formParameters(new ArrayList<>(Arrays.asList(NameValuePair.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())
.response(EndpointResponse.builder()
.contentType("EXAMPLE-contentType-Value")
.example("EXAMPLE-example-Value").build())
.credentials(EndpointCredentials.builder()
.credentialType(EndpointCredentials.CredentialType.StaticToken)
.credentialName("EXAMPLE-credentialName-Value")
.credentialEndpoint(CredentialEndpoint.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.model("EXAMPLE-model-Value")
.endpointId(420L)
.response(EndpointResponse.builder()
.contentType("EXAMPLE-contentType-Value")
.example("EXAMPLE-example-Value").build())
.proxy(EndpointProxy.builder()
.url("EXAMPLE-url-Value")
.credentialName("EXAMPLE-credentialName-Value")
.credentialType(EndpointProxy.CredentialType.BasicAuth).build()).build()).build())
.proxy(EndpointProxy.builder()
.url("EXAMPLE-url-Value")
.credentialName("EXAMPLE-credentialName-Value")
.credentialType(EndpointProxy.CredentialType.Token).build())
.isEnabled(false)
.isSystem(false)
.endpointProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build()))).build())))
.sourceProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())))
.shouldTokenizeOriginalText(false)
.fieldDelimiter("EXAMPLE-fieldDelimiter-Value")
.fieldQualifier("EXAMPLE-fieldQualifier-Value")
.type(LogAnalyticsParser.Type.Regex)
.isUserDeleted(false)
.isNamespaceAware(false)
.categories(new ArrayList<>(Arrays.asList(LogAnalyticsCategory.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.type("EXAMPLE-type-Value")
.isSystem(true).build())))
.isPositionAware(false)
.dependentSources(new ArrayList<>(Arrays.asList(DependentSource.builder()
.sourceName("EXAMPLE-sourceName-Value")
.sourceDisplayName("EXAMPLE-sourceDisplayName-Value")
.sourceId(648L)
.sourceType("EXAMPLE-sourceType-Value")
.isSystem(true)
.isAutoAssociationEnabled(true)
.entityTypes(new ArrayList<>(Arrays.asList(LogAnalyticsSourceEntityType.builder()
.sourceId(55L)
.entityType("EXAMPLE-entityType-Value")
.entityTypeCategory("EXAMPLE-entityTypeCategory-Value")
.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value").build())))
.dependencies(new ArrayList<>(Arrays.asList(Dependency.builder()
.type("EXAMPLE-type-Value")
.referenceType("EXAMPLE-referenceType-Value")
.referenceId(685L)
.referenceName("EXAMPLE-referenceName-Value")
.referenceDisplayName("EXAMPLE-referenceDisplayName-Value").build()))).build())))
.dependentParsers(new ArrayList<>(Arrays.asList(DependentParser.builder()
.parserName("EXAMPLE-parserName-Value")
.parserDisplayName("EXAMPLE-parserDisplayName-Value")
.parserId(183L)
.isSystem(true)
.parserType(DependentParser.ParserType.Xml)
.dependencies(new ArrayList<>(Arrays.asList(Dependency.builder()
.type("EXAMPLE-type-Value")
.referenceType("EXAMPLE-referenceType-Value")
.referenceId(918L)
.referenceName("EXAMPLE-referenceName-Value")
.referenceDisplayName("EXAMPLE-referenceDisplayName-Value").build()))).build()))).build();
ExtractStructuredLogFieldPathsRequest extractStructuredLogFieldPathsRequest = ExtractStructuredLogFieldPathsRequest.builder()
.namespaceName("EXAMPLE-namespaceName-Value")
.loganParserDetails(logAnalyticsParser)
.parserType(ExtractStructuredLogFieldPathsRequest.ParserType.Delimited)
.opcRetryToken("EXAMPLE-opcRetryToken-Value")
.opcRequestId("VTHSAOLFC1E6MSFN6N0X<unique_ID>").build();
/* Send request to the Client */
ExtractStructuredLogFieldPathsResponse response = client.extractStructuredLogFieldPaths(extractStructuredLogFieldPathsRequest);
}
}