본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)22k · #10236

cloud-logging-configuration-basics

하는 일

이 스킬은 하나의 Google Cloud 프로젝트에서 로그가 저장되고 보이는 방식을 설정하도록 돕습니다. 로그를 체계적으로 관리하고 민감한 항목을 볼 수 있는 사람을 제한하려는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓하나의 Google Cloud 프로젝트에서 로그 버킷, 로그 싱크 또는 로그 뷰를 설정하고 싶을 때.
  • ✓민감한 로그를 기본 보기에서 숨기거나 IAM으로 제한해야 할 때.
  • ✓한 프로젝트에 로그 제외 항목, 샘플링 또는 로그 기반 지표를 추가하고 싶을 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/cloud-logging-configuration-basics/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/cloud-logging-configuration-basics/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 Google Cloud 프로젝트의 민감한 감사 로그를, 볼 필요가 없는 사람에게는 보이지 않게 숨겨 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

gcloud 명령으로 버킷, 싱크, 뷰, 접근 규칙을 한 단계씩 만듭니다. 읽기 전용 점검으로 시작하고, 어떤 변경이든 하기 전에 확인을 요청합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Configuring Cloud Logging

Use this skill to configure Cloud Logging resources such as log buckets, log views, or log sinks.

[!IMPORTANT] Sandbox Network Limitation (CRITICAL for Agent Testing): During evaluation or in restricted sandboxed environments, network traffic to Google Cloud APIs is blocked. Do NOT run network discovery commands to find resource names, project IDs, or organization IDs. Always use the exact project IDs or placeholders provided in the user prompt or instructions for example, {project_id}. Assume these resources exist and proceed directly with configuration commands. Running these discovery commands will cause the execution to hang and timeout.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:cloud-logging-configuration-basics)" and append agent-skills/1.0 (skill:cloud-logging-configuration-basics) to User-Agent headers.

Safety and Confirmation Tiers (CRITICAL)

Before executing any commands on behalf of the user, you MUST adhere to the following safety tiers based on the action requested:

  1. Tier R: Read-Only
    • Description: Commands that only read state or query logs.
    • Example commands:
      • gcloud logging read
      • gcloud logging buckets list
    • Rule: No confirmation needed. You may execute these commands immediately to gather information.
  2. Tier M: Mutation (Non-Billing)
    • Description: Configuration modifications or free metadata creations that do not incur direct storage or billing costs and do not affect resource security/access policies.
    • Example commands:
      • gcloud logging views create
      • gcloud logging views update
      • gcloud logging scopes create
      • gcloud logging buckets create
    • Rule: No confirmation needed. You may execute these commands immediately to apply configurations.
  3. Tier B: Billing and Security-Sensitive Mutations (High-Risk)
    • Description: Operations that create billing-inducing resources or integrations, or modify security and IAM access control policies (presenting a risk of privilege escalation).
    • Example commands:
      • gcloud logging metrics create
      • gcloud logging links create
      • gcloud projects add-iam-policy-binding
    • Rule: Interactive confirmation required. These commands create resources that incur billing costs or alter security access. You MUST present the exact, literal command and receive user confirmation before executing. NEVER execute in the same turn as asking.
  4. Tier D: Causes irreversible data loss
    • Description: Actions that permanently discard or delete logs, for example sink exclusions.
    • Example commands:
      • gcloud logging buckets delete
      • gcloud logging sinks update --add-exclusion
    • Rule: Explicit typed confirmation required. These commands discard or delete logs immediately and irreversibly, or they may result in log data not being stored. You MUST ask for explicit typed confirmation, for example, "Yes, discard logs", and halt execution until the user replies.

Getting Started

If the gcloud executable is missing, refer to the Google Cloud CLI Installation Guide to install it.

Creating Log Buckets (Compliance and Analytics) (Tier M)

To create a regional log bucket with a specific retention policy for regulatory compliance, and with Observability Analytics enabled:

[!WARNING] Mandatory Observability Analytics Downgrade Warning: Whenever providing guidance, writing a guide, or drafting commands on Cloud Logging cost optimization or exclusions, you must explicitly include the following warning in your final text response and any generated guides: "After a log bucket has been upgraded to use Observability Analytics, it cannot be downgraded to remove the analytics capability."

gcloud logging buckets create {bucket_id} \
    --project={project_id} \
    
자주 묻는 질문

여러 프로젝트의 로깅도 다루나요?

아닙니다. 단일 프로젝트 설정용이므로, 여러 프로젝트에는 교차 프로젝트 스킬을 사용하세요.

기본 보기에서 로그를 숨길 수 있나요?

네. 필터를 써서 기본 보기에서 민감한 로그를 제한하거나 숨길 수 있습니다.

확인 없이 설정을 바꾸나요?

아닙니다. 변경에는 사용자의 명시적인 확인이 필요하며, 읽기 전용 점검을 먼저 실행합니다.

상세 정보

작성자의 원본 설명

Configure single-project Cloud Logging on Google Cloud: regional log buckets, log sinks, log views, restricting or hiding sensitive logs in the default view (_Default) filter, IAM permissions for views (Logs View Accessor, IAM conditions), logs-based metrics, log exclusions, and sampling. Don't use for cross-project logging or multi-project setups.

repo: google/skills

인기도

GitHub 스타
22k
순위
#10236
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬