Cloud Service Mesh (ASM)

Istio는 Cloud Service Mesh의 감사 가능한 작동 구성요소입니다.

워크로드 위치

루트 및 조직 워크로드

감사 로그 소스

Istio Service Mesh Envoy

감사 대상 작업

수신된 요청 및 응답

수신된 요청 및 응답

감사 정보가 포함된 로그 항목의 필드
감사 메타데이터 감사 필드 이름
사용자 또는 서비스 ID username

예를 들면 다음과 같습니다.

"username": "fop-cluster-admin@example.com"

대상

(API를 호출하는 필드 및 값)

  • authority
  • resource.cluster_name
  • resource.log_name
  • resource.node_name
  • resource.zone_name

예를 들면 다음과 같습니다.

"authority": "console.zone1.google.gdch.test",
"resource": {
  "cluster_name": "fleet-admin-platform.gpc-system",
  "log_name": "otel_envoy_accesslog",
  "node_name": "sidecar~10.253.132.163",
  "zone_name": "europe-west4-a"
  }

작업

(실행된 작업을 포함하는 필드)

  • body
  • bytes_received
  • bytes_sent
  • connection_termination_details
  • downstream_local_address
  • downstream_remote_address
  • duration
  • method

예를 들면 다음과 같습니다.

"body": {},
"bytes_received": "0",
"bytes_sent": "46259",
"connection_termination_details": "-",
"downstream_local_address": "10.253.132.163:80",
"downstream_remote_address": "10.200.0.1:0",
"duration": "4",
"method": "GET"

이벤트 타임스탬프
  • start_time
  • time_unix_nano

예를 들면 다음과 같습니다.

"start_time": "2022-11-15T23:59:41.041Z",
"time_unix_nano": 1668556781041333000

작업 소스 downstream_remote_address

예를 들면 다음과 같습니다.

"downstream_remote_address": "10.200.0.1:0"

결과 response_code

예를 들면 다음과 같습니다.

"response_code": "200"

기타 필드 해당 없음 해당 없음

예시 로그

{
  "authority":"cortex-tenant.obs-system.svc:9009",
  "body":{},
  "bytes_received":"573",
  "bytes_sent":"19",
  "connection_termination_details":"-",
  "downstream_local_address":"10.253.132.167:9009",
  "downstream_remote_address":"10.253.132.122:48272",
  "duration":"1",
  "method":"POST",
  "observed_time_unix_nano":0,
  "path":"/push",
  "protocol":"HTTP/1.1",
  "requested_server_name":"-",
  "resource":{
    "cluster_name":"cortex-tenant.obs-system",
    "log_name":"otel_envoy_accesslog",
    "node_name":"sidecar~10.253.132.167~cortex-tenant-7b9678cfb5-tl4xz.obs-system~obs-system.svc.cluster.local",
    "zone_name":"us-east1-b"
    },
  "response_code":"503",
  "response_code_details":"via_upstream",
  "response_flags":"-",
  "route_name":"default",
  "severity_number":0,
  "severity_text":"",
  "start_time":"2022-11-18T15:59:55.958Z",
  "time_unix_nano":1668787195958027000,
  "upstream_cluster":"inbound|9009||",
  "upstream_host":"10.253.132.167:9009",
  "upstream_local_address":"127.0.0.6:43899",
  "upstream_transport_failure_reason":"-",
  "user_agent":"Prometheus/2.29.2",
  "username":"-",
  "x_envoy_upstream_service_time":"1",
  "x_forwarded_for":"-",
  "x_goog_api_client":"-",
  "x_request_id":"9e942509-9d28-4164-850f-9666b3eb272e"
}