cloud-logging-configuration-basics
यह क्या करती है
यह स्किल एक Google Cloud प्रोजेक्ट में लॉग कैसे संग्रहीत और देखे जाते हैं, यह कॉन्फ़िगर करने में मदद करती है। यह उन टीमों के लिए है जो लॉग व्यवस्थित रखना और संवेदनशील प्रविष्टियाँ कौन देख सकता है, यह सीमित करना चाहती हैं।
कब इस्तेमाल करें
- ✓जब आप एक Google Cloud प्रोजेक्ट के लिए log buckets, log sinks या log views सेट करना चाहें।
- ✓जब संवेदनशील लॉग को डिफ़ॉल्ट व्यू से छुपाना हो या IAM से सीमित करना हो।
- ✓जब आप एक प्रोजेक्ट में log exclusions, sampling या log-based metrics जोड़ना चाहें।
Skill का लिंक
https://github.com/google/skills/blob/main/skills/cloud/cloud-logging-configuration-basics/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Google Cloud प्रोजेक्ट के संवेदनशील audit लॉग को उन सभी से छुपाइए जिन्हें वे नहीं देखने चाहिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह gcloud कमांड से buckets, sinks, views और पहुँच नियम एक-एक चरण में बनाती है। यह केवल-पढ़ने वाली जाँच से शुरू करती है और किसी भी बदलाव से पहले पुष्टि माँगती है।
तकनीकी सामग्री (मूल 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:
- Tier R: Read-Only
- Description: Commands that only read state or query logs.
- Example commands:
gcloud logging readgcloud logging buckets list
- Rule: No confirmation needed. You may execute these commands immediately to gather information.
- 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 creategcloud logging views updategcloud logging scopes creategcloud logging buckets create
- Rule: No confirmation needed. You may execute these commands immediately to apply configurations.
- 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 creategcloud logging links creategcloud 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.
- Tier D: Causes irreversible data loss
- Description: Actions that permanently discard or delete logs, for example sink exclusions.
- Example commands:
gcloud logging buckets deletegcloud 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} \
अक्सर पूछे जाने वाले सवाल
क्या यह कई प्रोजेक्ट में लॉगिंग संभालती है?
नहीं। यह एक प्रोजेक्ट वाले सेटअप के लिए है, कई प्रोजेक्ट के लिए cross-project स्किल इस्तेमाल करें।
क्या यह लॉग डिफ़ॉल्ट व्यू से छुपा सकती है?
हाँ। यह फ़िल्टर से संवेदनशील लॉग को डिफ़ॉल्ट व्यू में सीमित या छुपा सकती है।
क्या यह बिना पूछे सेटिंग बदलेगी?
नहीं। बदलावों के लिए आपकी साफ़ पुष्टि चाहिए, और केवल-पढ़ने वाली जाँचें पहले चलती हैं।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
finding-google-skills
22kआपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।
gcloud
22kयह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।
google-cloud-recipe-auth
22kआपके एजेंट को Google Cloud की पहचान और पहुँच समझाती है, जिसमें यह शामिल है कि लोग और सेवाएँ कैसे साइन इन करते हैं और उन्हें कौन सी अनुमतियाँ मिलती हैं।
google-cloud-recipe-onboarding
22kएक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।