

# DescribeLogPattern


Describe a specific log pattern from a `LogPatternSet`.

## Request Syntax


```
{
   "AccountId": "string",
   "PatternName": "string",
   "PatternSetName": "string",
   "ResourceGroupName": "string"
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [AccountId](#API_DescribeLogPattern_RequestSyntax) **   <a name="appinsights-DescribeLogPattern-request-AccountId"></a>
The AWS account ID for the resource group owner.  
Type: String  
Length Constraints: Fixed length of 12.  
Pattern: `^\d{12}$`   
Required: No

 ** [PatternName](#API_DescribeLogPattern_RequestSyntax) **   <a name="appinsights-DescribeLogPattern-request-PatternName"></a>
The name of the log pattern.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 50.  
Pattern: `[a-zA-Z0-9\.\-_]*`   
Required: Yes

 ** [PatternSetName](#API_DescribeLogPattern_RequestSyntax) **   <a name="appinsights-DescribeLogPattern-request-PatternSetName"></a>
The name of the log pattern set.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 30.  
Pattern: `[a-zA-Z0-9\.\-_]*`   
Required: Yes

 ** [ResourceGroupName](#API_DescribeLogPattern_RequestSyntax) **   <a name="appinsights-DescribeLogPattern-request-ResourceGroupName"></a>
The name of the resource group.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[a-zA-Z0-9\.\-_]*`   
Required: Yes

## Response Syntax


```
{
   "AccountId": "string",
   "LogPattern": { 
      "Pattern": "string",
      "PatternName": "string",
      "PatternSetName": "string",
      "Rank": number
   },
   "ResourceGroupName": "string"
}
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [AccountId](#API_DescribeLogPattern_ResponseSyntax) **   <a name="appinsights-DescribeLogPattern-response-AccountId"></a>
The AWS account ID for the resource group owner.  
Type: String  
Length Constraints: Fixed length of 12.  
Pattern: `^\d{12}$` 

 ** [LogPattern](#API_DescribeLogPattern_ResponseSyntax) **   <a name="appinsights-DescribeLogPattern-response-LogPattern"></a>
The successfully created log pattern.  
Type: [LogPattern](API_LogPattern.md) object

 ** [ResourceGroupName](#API_DescribeLogPattern_ResponseSyntax) **   <a name="appinsights-DescribeLogPattern-response-ResourceGroupName"></a>
The name of the resource group.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[a-zA-Z0-9\.\-_]*` 

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** InternalServerException **   
The server encountered an internal error and is unable to complete the request.  
HTTP Status Code: 400

 ** ResourceNotFoundException **   
The resource does not exist in the customer account.  
HTTP Status Code: 400

 ** ValidationException **   
The parameter is not valid.  
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/application-insights-2018-11-25/DescribeLogPattern) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/application-insights-2018-11-25/DescribeLogPattern) 