We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.logs.getLogAnomalyDetector
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
The AWS::Logs::LogAnomalyDetector resource specifies a CloudWatch Logs LogAnomalyDetector.
Using getLogAnomalyDetector
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLogAnomalyDetector(args: GetLogAnomalyDetectorArgs, opts?: InvokeOptions): Promise<GetLogAnomalyDetectorResult>
function getLogAnomalyDetectorOutput(args: GetLogAnomalyDetectorOutputArgs, opts?: InvokeOptions): Output<GetLogAnomalyDetectorResult>def get_log_anomaly_detector(anomaly_detector_arn: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetLogAnomalyDetectorResult
def get_log_anomaly_detector_output(anomaly_detector_arn: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetLogAnomalyDetectorResult]func LookupLogAnomalyDetector(ctx *Context, args *LookupLogAnomalyDetectorArgs, opts ...InvokeOption) (*LookupLogAnomalyDetectorResult, error)
func LookupLogAnomalyDetectorOutput(ctx *Context, args *LookupLogAnomalyDetectorOutputArgs, opts ...InvokeOption) LookupLogAnomalyDetectorResultOutput> Note: This function is named LookupLogAnomalyDetector in the Go SDK.
public static class GetLogAnomalyDetector 
{
    public static Task<GetLogAnomalyDetectorResult> InvokeAsync(GetLogAnomalyDetectorArgs args, InvokeOptions? opts = null)
    public static Output<GetLogAnomalyDetectorResult> Invoke(GetLogAnomalyDetectorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLogAnomalyDetectorResult> getLogAnomalyDetector(GetLogAnomalyDetectorArgs args, InvokeOptions options)
public static Output<GetLogAnomalyDetectorResult> getLogAnomalyDetector(GetLogAnomalyDetectorArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:logs:getLogAnomalyDetector
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AnomalyDetector stringArn 
- ARN of LogAnomalyDetector
- AnomalyDetector stringArn 
- ARN of LogAnomalyDetector
- anomalyDetector StringArn 
- ARN of LogAnomalyDetector
- anomalyDetector stringArn 
- ARN of LogAnomalyDetector
- anomaly_detector_ strarn 
- ARN of LogAnomalyDetector
- anomalyDetector StringArn 
- ARN of LogAnomalyDetector
getLogAnomalyDetector Result
The following output properties are available:
- AnomalyDetector stringArn 
- ARN of LogAnomalyDetector
- AnomalyDetector stringStatus 
- Current status of detector.
- AnomalyVisibility doubleTime 
- The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in AnomalyVisibilityTime, it will be considered normal going forward and will not be detected as an anomaly.
- CreationTime doubleStamp 
- When detector was created.
- DetectorName string
- Name of detector
- EvaluationFrequency Pulumi.Aws Native. Logs. Log Anomaly Detector Evaluation Frequency 
- How often log group is evaluated
- FilterPattern string
- You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax .
- KmsKey stringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- LastModified doubleTime Stamp 
- When detector was lsat modified.
- LogGroup List<string>Arn List 
- List of Arns for the given log group
- AnomalyDetector stringArn 
- ARN of LogAnomalyDetector
- AnomalyDetector stringStatus 
- Current status of detector.
- AnomalyVisibility float64Time 
- The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in AnomalyVisibilityTime, it will be considered normal going forward and will not be detected as an anomaly.
- CreationTime float64Stamp 
- When detector was created.
- DetectorName string
- Name of detector
- EvaluationFrequency LogAnomaly Detector Evaluation Frequency 
- How often log group is evaluated
- FilterPattern string
- You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax .
- KmsKey stringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- LastModified float64Time Stamp 
- When detector was lsat modified.
- LogGroup []stringArn List 
- List of Arns for the given log group
- anomalyDetector StringArn 
- ARN of LogAnomalyDetector
- anomalyDetector StringStatus 
- Current status of detector.
- anomalyVisibility DoubleTime 
- The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in AnomalyVisibilityTime, it will be considered normal going forward and will not be detected as an anomaly.
- creationTime DoubleStamp 
- When detector was created.
- detectorName String
- Name of detector
- evaluationFrequency LogAnomaly Detector Evaluation Frequency 
- How often log group is evaluated
- filterPattern String
- You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax .
- kmsKey StringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- lastModified DoubleTime Stamp 
- When detector was lsat modified.
- logGroup List<String>Arn List 
- List of Arns for the given log group
- anomalyDetector stringArn 
- ARN of LogAnomalyDetector
- anomalyDetector stringStatus 
- Current status of detector.
- anomalyVisibility numberTime 
- The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in AnomalyVisibilityTime, it will be considered normal going forward and will not be detected as an anomaly.
- creationTime numberStamp 
- When detector was created.
- detectorName string
- Name of detector
- evaluationFrequency LogAnomaly Detector Evaluation Frequency 
- How often log group is evaluated
- filterPattern string
- You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax .
- kmsKey stringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- lastModified numberTime Stamp 
- When detector was lsat modified.
- logGroup string[]Arn List 
- List of Arns for the given log group
- anomaly_detector_ strarn 
- ARN of LogAnomalyDetector
- anomaly_detector_ strstatus 
- Current status of detector.
- anomaly_visibility_ floattime 
- The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in AnomalyVisibilityTime, it will be considered normal going forward and will not be detected as an anomaly.
- creation_time_ floatstamp 
- When detector was created.
- detector_name str
- Name of detector
- evaluation_frequency LogAnomaly Detector Evaluation Frequency 
- How often log group is evaluated
- filter_pattern str
- You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax .
- kms_key_ strid 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- last_modified_ floattime_ stamp 
- When detector was lsat modified.
- log_group_ Sequence[str]arn_ list 
- List of Arns for the given log group
- anomalyDetector StringArn 
- ARN of LogAnomalyDetector
- anomalyDetector StringStatus 
- Current status of detector.
- anomalyVisibility NumberTime 
- The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in AnomalyVisibilityTime, it will be considered normal going forward and will not be detected as an anomaly.
- creationTime NumberStamp 
- When detector was created.
- detectorName String
- Name of detector
- evaluationFrequency "FIVE_MIN" | "TEN_MIN" | "FIFTEEN_MIN" | "THIRTY_MIN" | "ONE_HOUR"
- How often log group is evaluated
- filterPattern String
- You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax .
- kmsKey StringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- lastModified NumberTime Stamp 
- When detector was lsat modified.
- logGroup List<String>Arn List 
- List of Arns for the given log group
Supporting Types
LogAnomalyDetectorEvaluationFrequency    
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi