기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
이벤트 로그 구성 생성
CreateEventLogConfiguration API 작업을 사용하여 리소스 유형에 대한 이벤트 로깅을 활성화합니다. 각 리소스 유형에 대해 별도의 구성을 생성하여를 리소스 식별자*로 사용하여 해당 유형의 모든 리소스에 대한 로그를 캡처하는 것이 좋습니다. ERROR 로그 수준에서 시작하여 과도한 볼륨이나 비용을 발생시키지 않고 모든 실패 로그를 수신합니다.
aws iot-managed-integrations create-event-log-configuration \ --resource-type "managed-thing" \ --resource-id "*" \ --event-log-level "ERROR"
각 리소스 유형에 대해 반복합니다.
aws iot-managed-integrations create-event-log-configuration \ --resource-type "credential-locker" \ --resource-id "*" \ --event-log-level "ERROR" aws iot-managed-integrations create-event-log-configuration \ --resource-type "provisioning-profile" \ --resource-id "*" \ --event-log-level "ERROR" aws iot-managed-integrations create-event-log-configuration \ --resource-type "ota-task" \ --resource-id "*" \ --event-log-level "ERROR" aws iot-managed-integrations create-event-log-configuration \ --resource-type "account-association" \ --resource-id "*" \ --event-log-level "ERROR"
를 호출하면 CreateEventLogConfiguration로그가 CloudWatch Logs의 /aws/iotmanagedintegrations/EventLog 로그 그룹으로 푸시됩니다. ListEventLogConfigurations를 사용하여 모든 구성을 보거나 GetEventLogConfiguration을 사용하여 ID별로 특정 구성을 검색합니다.