# CloudWatch 로그 그룹

## 리소스 유형

`AWS.CloudWatch.LogGroup`

## 리소스 ID 형식

CloudWatch Log Group의 경우 리소스 ID는 ARN입니다.

`arn:aws:logs:us-west-2:123456789012:log-group:/prefix/groupname:*`

## 배경

CloudWatch Logs는 팀이 시스템, 애플리케이션, AWS 서비스의 로그를 중앙 집중화할 수 있게 해줍니다.

## 필드

| 필드                  | 유형    | 설명                                                            |
| ------------------- | ----- | ------------------------------------------------------------- |
| `KmsKeyId`          | `문자열` | 로그 데이터를 암호화할 때 사용할 CMK의 Amazon 리소스 이름(ARN).                   |
| `MetricFilterCount` | `정수`  | 메트릭 필터의 수입니다.                                                 |
| `RetentionInDays`   | `정수`  | 지정된 로그 그룹에서 로그 이벤트를 보관할 일수입니다. 이 값이 `null`이면 로그는 영구적으로 보관됩니다. |
| `StoredBytes`       | `정수`  | 로그 그룹에 저장된 바이트 수입니다.                                          |

```javascript
{
    "AccountId": "123456789012",
    "Arn": "arn:aws:logs:us-west-2:123456789012:log-group:/prefix/groupname:*",
    "KmsKeyId": null,
    "MetricFilterCount": 0,
    "Name": "/prefix/groupname",
    "Region": "us-west-2",
    "ResourceId": "arn:aws:logs:us-west-2:123456789012:log-group:/prefix/groupname:*",
    "ResourceType": "AWS.CloudWatch.LogGroup",
    "RetentionInDays": 365,
    "StoredBytes": 100000,
    "Tags": null,
    "TimeCreated": "2019-01-01T00:00:00.000Z"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.panther.com/ko/cloud-scanning/cloud-resource-attributes/aws/cloudwatch-log-group.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
