Amazon CloudWatch Log Group pattern-based discovery
Summarize
Summary of Amazon CloudWatch Log Group pattern-based discovery
This pattern-based discovery enables ServiceNow customers to identify and map Amazon CloudWatch Log Groups within their AWS cloud environment using the Discovery and Service Mapping Patterns application. It assists in populating detailed data about these log groups into both CMDB and non-CMDB tables, facilitating comprehensive cloud resource management and service mapping.
Show less
Key Features
- Pattern Activation: The Amazon CloudWatch Log Group discovery pattern is disabled by default and requires activation. From Visibility Content version 6.28.0 onward, enabling or disabling patterns is treated as a non-customizable action and will receive updates automatically.
- Prerequisites: Customers must verify AWS discovery prerequisites and ensure that CloudWatch Log Groups are not listed in the Resource Inclusion List table to prevent duplicate discoveries.
- Data Population: The discovery populates data into:
- Non-CMDB tables (e.g.,
cmdbawscloudwatchlog) containing log group details such as name, ARN, storage class, and stored bytes. - CMDB tables (e.g.,
cmdbcicmpresource) storing key resource attributes like ARN, name, resource type (set as AWS::CloudWatch::Log), operational and install status. - CI Relationships and References: The pattern establishes relationships, such as hosting the Cloud Resource on an AWS Datacenter, supporting accurate service mapping. References link CloudWatch Log Group records between CMDB and non-CMDB tables to maintain data integrity.
- AWS Tag Discovery: The pattern collects associated AWS tags and stores them in the Key Value table (
cmdbkeyvalue) linked to the Cloud Resource, enabling tag-based filtering and management.
Practical Benefits
By enabling this pattern-based discovery, ServiceNow customers can automate the detection and inventory of Amazon CloudWatch Log Groups, enriching their CMDB with accurate, up-to-date cloud resource information. This supports improved operational visibility, resource tracking, and service mapping within hybrid cloud environments.
Activation and maintenance of this pattern ensure continuous updates and alignment with AWS resource changes, reducing manual overhead and improving discovery accuracy.
Discovery and Service Mapping Patterns finds Amazon CloudWatch Log Groups on your cloud environment. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.
Pattern-based discovery and mapping requirements
- Verify the AWS discovery prerequisites
- For more information, see the prerequisites section in AWS discovery using patterns.
- Remove resources from the Resource Inclusion List table
- Verify that the relevant resource isn't listed in the Resource Inclusion List [sa_cloud_inventory_resource_whitelist] table to avoid duplicate discovery. For more information on removing resources from the Resource Inclusion List, see AWS Resource Inventory discovery with Patterns.
- Enable the relevant pattern
- The pattern for this service is disabled by default. Starting with Visibility Content version 6.28.0, activating or deactivating a pattern won't be considered a customization, and it will continue to receive updates. Patterns that were previously activated or deactivated will reset to the latest predefined version after upgrading while retaining the last active field value. For more information on enabling patterns, see Activate a disabled pattern.
Discovery and Service Mapping Patterns application populates data in both CMDB and non-CMDB tables.
Data stored in non-CMDB tables
Discovery and Service Mapping Patterns application populates data in the non-CMDB table when running the Amazon AWS - CloudWatch Log Group - Extended Inventory (LP) pattern.
You can review the non-CMDB AWS tables by navigating to . You can also search the navigation filter for the specific pattern name.
| Field | Description |
|---|---|
| Name [name] | Name of the Amazon CloudWatch log group. |
| Object ID [object_id] | Amazon Resource Name (ARN) of the log group. |
| Log Group Arn [log_group_arn] | ARN of the log group. |
| Log Group Class [log_group_class] | Storage class of the log group. |
| Stored Bytes [stored_bytes] | Number of bytes stored in the log group. |
| Configuration Item [configuration_item] | References the Cloud Resource [cmdb_ci_cmp_resource] table. |
Data stored in CMDB tables
Discovery and Service Mapping Patterns application populates data in the CMDB when running the Amazon AWS - CloudWatch Log Group - Extended Inventory (LP) pattern.
| Field | Description |
|---|---|
| Object ID [object_id] | ARN of the log group. |
| Name [name] | Name of the Amazon CloudWatch log group. |
| Resource type [resource_type] | Type of resource. The value is set to AWS::CloudWatch::Log. |
| Operational status [operational_status] | Operational status of the resource. Default value is Operational. |
| Install Status [install_status] | Install status of the resource. Default value is Installed. |
CI relationships
The Amazon AWS - CloudWatch Log Group - Extended Inventory (LP) pattern creates the following relationships and references to support Amazon CloudWatch Log Group discovery. References link to records in other tables and don't appear in the CI Relationship [cmdb_rel_ci] table.
| CI | Relationship | CI |
|---|---|---|
| Cloud Resource [cmdb_ci_cmp_resource] | Hosted on::Hosts | AWS Datacenter [cmdb_ci_aws_datacenter] |
| CI | Field | Referenced CI |
|---|---|---|
| AWS CloudWatch Log [cmdb_aws_cloudwatch_log] | Configuration Item [configuration_item] | Cloud Resource [cmdb_ci_cmp_resource] |
| Key Value [cmdb_key_value] | Configuration item [configuration_item] | Cloud Resource [cmdb_ci_cmp_resource] |
AWS Tag discovery
The Amazon AWS - CloudWatch Log Group - Extended Inventory (LP) pattern collects tags and populates them in the Key Value [cmdb_key_value] table.
| Field | Description |
|---|---|
| Key [key] | Tag name. |
| Value [value] | Tag value. |
| Configuration item [configuration_item] | References the Cloud Resource [cmdb_ci_cmp_resource] table. |