listClusterLog스트림 - AWS ParallelCluster

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

listClusterLog스트림

클러스터와 연결된 로그 스트림의 목록을 검색합니다.

요청 구문

GET /v3/clusters/{clusterName}/logstreams { "filters": [ "string" ], "nextToken": "string", "region": "string" }

요청 본문

clusterName

클러스터의 이름입니다.

유형: string

필수 항목 여부: 예

필터

로그 스트림을 필터링합니다.

허용되는 필터는 다음과 같습니다.

  • private-dns-name: 인스턴스의 프라이빗 DNS 이름의 약식 (예: ip-10-0-0-101).

  • node-type: 유효한 값: HeadNode

유형: 고유 문자열 배열

형식: Name=a,Values=1 Name=b,Values=2,3

필수 여부: 아니요

nextToken

페이지가 매겨진 요청에 사용되는 토큰입니다.

유형: string

필수사항: 아니요

region

클러스터가 속해 AWS 리전 있는 곳.

유형: string

필수사항: 아니요

응답 구문

{ "nextToken": "string", "logStreams": [ { "logStreamName": "string", "creationTime": "2019-08-24T14:15:22Z", "firstEventTimestamp": "2019-08-24T14:15:22Z", "lastEventTimestamp": "2019-08-24T14:15:22Z", "lastIngestionTime": "2019-08-24T14:15:22Z", "uploadSequenceToken": "string", "logStreamArn": "string" } ] }

응답 본문

logStreams

로그 스트림 목록입니다.

creationTime

스트림이 생성된 시간입니다.

유형: 날짜/시간

firstEventTimestamp

스트림 첫 번째 이벤트의 시간입니다.

유형: 날짜/시간

lastEventTimestamp

스트림 마지막 이벤트의 시간입니다. lastEventTime 값은 최종 일관성을 기준으로 업데이트됩니다. 일반적으로 수집 후 한 시간 이내에 업데이트되지만 드물게 그보다 더 오래 걸릴 수 있습니다.

유형: 날짜/시간

lastIngestionTime

마지막 수집 시간입니다.

유형: 날짜/시간

logStreamArn

로그 스트림의 Amazon 리소스 이름(ARN)입니다.

유형: string

logStreamName

로그 스트림의 이름입니다.

유형: string

uploadSequenceToken

시퀀스 토큰입니다.

유형: string

nextToken

페이지가 매겨진 요청에 사용되는 토큰입니다.

유형: string

예제

Python

요청

$ list_cluster_log_streams(cluster_name_3x)

200 응답

{ 'log_streams': [ { 'creation_time': datetime.datetime(2022, 3, 30, 14, 7, 34, 354000, tzinfo=tzlocal()), 'first_event_timestamp': datetime.datetime(2022, 3, 30, 14, 6, 41, 444000, tzinfo=tzlocal()), 'last_event_timestamp': datetime.datetime(2022, 3, 30, 14, 25, 55, 462000, tzinfo=tzlocal()), 'last_ingestion_time': datetime.datetime(2022, 3, 30, 14, 49, 50, 62000, tzinfo=tzlocal()), 'log_stream_arn': 'arn:aws:logs:us-east-1:123456789012:log-group:/aws/parallelcluster/cluster_name_3x:log-stream:ip-192-0-2-26.i-abcdef01234567890.cfn-init', 'log_stream_name': 'ip-192-0-2-26.i-abcdef01234567890.cfn-init', ... 'upload_sequence_token': '####' }, ... ] }