अगर क्वेरी के नतीजों में लॉग दिखते हैं, तो इसका मतलब है कि लॉगिंग चालू है.
अगर आपको इस क्वेरी के नतीजों में कोई लॉग नहीं दिखता है, तो हो सकता है कि आपके प्रोजेक्ट के लिए Cloud Logging चालू न हो. Cloud Logging की सुविधा चालू करने के लिए, Google Maps Platform की सहायता टीम से संपर्क करें.
इस्तेमाल से जुड़े प्रतिबंधित लॉग जनरेट करने की सुविधा चालू करें
मोबिलिटी सेवा की खास शर्तों के मुताबिक, Fleet Engine से जनरेट होने वाले कुछ लॉग डेटा को सिर्फ़ 30 दिनों तक सेव किया जा सकता है.
Fleet Engine इन लॉग को TOS_RESTRICTED के तौर पर लेबल करता है और इन्हें सीमित समय तक सुरक्षित रखने वाले लॉग बकेट में क्रम से लगाता है. आपको यह बकेट यहां दिखाए गए तरीके से बनाना होगा.
अन्य सभी लॉग डेटा को डिफ़ॉल्ट बकेट में असाइन किया जाता है. इसे मोबिलिटी सेवा से जुड़ी खास शर्तों में बताई गई अवधि तक सेव रखा जा सकता है.
Google Cloud Console में लॉग स्टोरेज सेक्शन में जाकर, लॉग बकेट और उनके रखरखाव की अवधियों को पसंद के मुताबिक बनाने के बारे में जानें.
विश्लेषण के लिए, लॉग डेटा के पूरे सेट के लिए, पाबंदी वाले और डिफ़ॉल्ट लॉग से डेटा को जोड़ा जा सकता है.
इस्तेमाल से जुड़ी पाबंदियों के लॉग चालू करने के लिए, यह तरीका अपनाएं:
पाबंदी के साथ इस्तेमाल की जाने वाली लॉग के लिए, सिंक और बकेट बनाएं. साथ ही, लॉग को उनकी सही बकेट में फ़िल्टर करें.
इस्तेमाल से जुड़ी पाबंदियों वाले लॉग चालू करने के लिए, सहायता टीम से संपर्क करें.
ज़्यादा जानकारी के लिए, यहां दिए गए सेक्शन देखें.
अपने प्रोजेक्ट में, प्रतिबंधित लॉग के लिए सिंक और बकेट बनाना
लॉग एक्सप्लोरर में, बाईं ओर मौजूद नेविगेशन में, लॉग राऊटर पेज खोलें.
पाबंदी वाले लॉग को शामिल न करने के लिए, _Default लॉगिंग बकेट में बदलाव करें.
Log Router Sinks में जाकर, _Default logging bucket चुनें.
कार्रवाइयां मेन्यू से, सिंक में बदलाव करें चुनें.
सिंक से बाहर फ़िल्टर करने के लिए लॉग चुनें सेक्शन पर जाएं और हटाने की शर्त जोड़ें बटन पर क्लिक करें.
बाहर रखने वाले फ़िल्टर का नामExcludeRestrictedLogs पर सेट करें.
शामिल करने और बाहर रखने के लिए फ़िल्टर बनाएं बॉक्स में, यह फ़िल्टर चिपकाएं:
labels.restriction="TOS_RESTRICTED"
सिंक अपडेट करें पर क्लिक करें.
सीमित इस्तेमाल वाले लॉग को सेव करने के लिए, प्रतिबंधित लॉगिंग बकेट बनाएं. इसके लिए, सभी लॉग के लिए एक सिंक और बकेट बनाएं. इसके बाद, उन लॉग को बाहर रखें जिन पर पाबंदी नहीं है.
ब्यौरा: Fleet Engine के उन लॉग को रूट करता है जिनका इस्तेमाल सीमित तौर पर किया जा सकता है.
आगे बढ़ें पर क्लिक करें.
सिंक डेस्टिनेशन के बारे में जानकारी भरें:
सिंक सेवा: लॉगिंग बकेट चुनें
लॉग बकेट चुनें: नई लॉग बकेट बनाएं को चुनें.
बकेट की जानकारी डायलॉग में, यह जानकारी डालें:
नाम: Restricted
ब्यौरा: इसमें Fleet Engine के ऐसे लॉग शामिल होते हैं जिनका इस्तेमाल सीमित तौर पर किया जा सकता है.
बाकी जानकारी को ऐसे ही छोड़ दें और आगे बढ़ें पर क्लिक करें.
डेटा के रखरखाव की अवधि को 30 दिनों पर सेट करें. (डेटा को सुरक्षित रखने की अवधि 30 दिनों से ज़्यादा नहीं होनी चाहिए.)
बकेट बनाएं पर क्लिक करें.
सिंक बनाने के डायलॉग बॉक्स में वापस जाएं और सिंक में शामिल करने के लिए लॉग सेक्शन को खाली छोड़ दें.
सिंक से फ़िल्टर किए जाने वाले लॉग सेक्शन में, एक्सक्लूज़न जोड़ें पर क्लिक करें
और यह जानकारी भरें:
बाहर रखने वाले फ़िल्टर का नाम: ExcludeNonRestrictedLogs
शामिल न किए जाने वाले फ़िल्टर: NOT (resource.type =
"fleetengine.googleapis.com/Fleet" OR resource.type =
"fleetengine.googleapis.com/DeliveryFleet") NOT (labels.restriction
= "TOS_RESTRICTED")
सिंक बनाएं पर क्लिक करें.
इस्तेमाल से जुड़ी पाबंदियों वाले लॉग चालू करने के लिए, सहायता टीम से संपर्क करें
सहायता के लिए नया अनुरोध करने के लिए, केस बनाएं पर क्लिक करें.
यह जानकारी दें:
चालू करने के लिए प्रोजेक्ट आईडी.
बदलाव का अनुरोध करने वाले व्यक्ति का ईमेल पता. इस व्यक्ति के पास, उन Google Cloud प्रोजेक्ट में बदलाव करने का ऐक्सेस होना चाहिए जिनकी सूची आपने बनाई है.
हां लिखकर, यहां दी गई बातों से सहमत हों: Cloud Logging में Google Maps Content के इस्तेमाल पर पाबंदी लगाने की सुविधा चालू करने का मतलब है कि आप Google Maps Platform की शर्तों और मोबिलिटी सेवा से जुड़ी खास शर्तों का पालन करने के लिए सहमत हैं. इनमें, Google Maps Content से जुड़ी कैश मेमोरी और इस्तेमाल की ज़रूरी शर्तें शामिल हैं.
सहायता टीम की ओर से आपके अनुरोध को पूरा करने के बाद, आपको इसकी पुष्टि करने वाला एक ईमेल मिलेगा. इसमें बताया जाएगा कि आपके प्रोजेक्ट के लिए लॉगिंग की सुविधा चालू कर दी गई है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-09-05 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eFleet Engine automatically enables logging, verifiable via a query in the Logs Explorer using \u003ccode\u003eresource.type:"fleetengine.googleapis.com"\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRestricted-use logs, labeled \u003ccode\u003eTOS_RESTRICTED\u003c/code\u003e, require a dedicated bucket with a 30-day retention period due to the Mobility Service Specific Terms.\u003c/p\u003e\n"],["\u003cp\u003eEnabling restricted-use logs involves creating a separate sink and bucket, then contacting Google Maps Platform Support for activation.\u003c/p\u003e\n"],["\u003cp\u003eFleet Engine logs may contain sensitive information and require careful access management using Google Cloud's Identity and Access Management for Cloud Logging.\u003c/p\u003e\n"]]],[],null,["Enable Cloud Logging\n\nFleet Engine should automatically have logging enabled.\n\n1. Open the [Logs Explorer](https://cloud.google.com/logging/docs/view/logs-explorer-interface).\n2. Enter the following query:\n\n resource.type:\"fleetengine.googleapis.com\"\n\nIf the results for the query list logs, then logging is enabled.\n\nIf you don't see any logs listed in the results for this query,\nCloud Logging may not be enabled for your project. To enable\nCloud Logging, contact [Google Maps Platform Support](https://console.cloud.google.com/google/maps-apis/support).\n\nEnable restricted use logs\n\nIn accordance with the [Mobility Service Specific Terms](/maps/documentation/transportation-logistics-terms/mobility/service-terms), some\nof the log data that Fleet Engine generates may only be retained for 30 days.\nFleet Engine labels those logs as `TOS_RESTRICTED` and sorts them into a\nrestricted-retention log bucket, which you must create as shown below.\n\nAll other log data is assigned to the default bucket where it can be retained\nlonger, as defined in the [Mobility Service Specific Terms](/maps/documentation/transportation-logistics-terms/mobility/service-terms).\nSee [Logs Storage](/maps/documentation/mobility/operations/cloud-logging/console.cloud.google.come/logs/storage) in the Google Cloud\nConsole about customizing your log buckets and their retention periods.\n\nFor analysis, you can join the data from restricted and default logs for a\ncomplete set of log data.\n\nDo the following to enable restricted use logs:\n\n1. Create a sink and bucket for restricted-use logs, and filter logs into their\n appropriate buckets.\n\n2. Contact support to enable restricted-use logs.\n\nFor details, see the following sections.\n\nCreate a sink and bucket for restricted logs in your project\n\n1. In the [Logs Explorer](https://cloud.google.com/logging/docs/view/logs-explorer-interface), in the left-hand\n navigation, open the **Log Router** page.\n\n2. Modify the _Default logging bucket to exclude restricted-use logs.\n\n 1. Under **Log Router Sinks**, select the _Default logging bucket.\n 2. Choose **Edit sink** from the **Actions** menu.\n 3. Go to the **Choose logs to filter out of sink** section and click the **Add Exclusion** button.\n 4. Set the **Exclusion filter name** to *ExcludeRestrictedLogs*.\n 5. In the **Build and exclusion filter** box, paste this filter: `labels.restriction=\"TOS_RESTRICTED\"`\n 6. Click **Update sink**.\n3. Create a restricted logging bucket to store the restricted-use logs. You do\n this by creating a sink and bucket for all logs, and then excluding the\n non-restricted logs.\n\n 1. On the [Log Router page](https://console.cloud.google.com/logs/router), towards the top, select **Create sink**.\n 2. Fill in the **Sink details** :\n 1. Name: *RestrictedLogs*\n 2. Description: *Routes Fleet Engine restricted-use logs.*\n 3. Click **Next**.\n 4. Fill in the **Sink destination** :\n 1. Select Sink service: Logging bucket\n 2. Select log bucket: Select **Create new log bucket**.\n 3. In the **Bucket details** dialog, fill in:\n 1. Name: *Restricted*\n 2. Description: *Contains Fleet Engine restricted-use logs.*\n 4. Leave the rest as is and click **Next**.\n 5. Set the **Retention period** to 30 days. (The retention period must not exceed 30 days.)\n 6. Click **Create bucket**.\n 5. Back in the sink creation dialog, leave the **Logs to include in sink** section empty.\n 6. In the **Logs to filter out of sink** section, click **Add Exclusion** and fill in:\n 1. Exclusion filter name: *ExcludeNonRestrictedLogs*\n 2. Exclusion filter: `NOT (resource.type =\n \"fleetengine.googleapis.com/Fleet\" OR resource.type =\n \"fleetengine.googleapis.com/DeliveryFleet\") NOT (labels.restriction\n = \"TOS_RESTRICTED\")`\n 7. Click **Create sink.**\n\nContact support to enable restricted-use logs\n\n1. Go to [Google Maps Platform Support](https://console.cloud.google.com/google/maps-apis/support)\n2. Click **Create Case** to start a new support request.\n3. Provide the following information:\n\n - Project ID(s) to enable.\n - Email address of the person requesting the change. This person should have edit access to the Google Cloud Projects you are listing.\n4. Agree to the following by writing **Yes** : *By enabling restricted-use\n Google Maps Content in Cloud Logging, you agree to adhere to the\n [Google Maps Platform terms](https://cloud.google.com/maps-platform/terms/) and [Mobility service specific\n terms](/maps/documentation/transportation-logistics-terms/mobility/service-terms), including caching and permitted use requirements as they relate\n to Google Maps Content.*\n\nOnce the support team handles your request, you will receive a confirmation that\nlogging has been enabled for your project.\n| **Note:** Fleet Engine logs may contain sensitive vehicle and trip information. You can restrict and audit access to these logs with Google Cloud [Identity and Access Management for Cloud Logging](https://cloud.google.com/logging/docs/access-control).\n\nWhat's next\n\nLearn how to [Work with logs in Logs Explorer](/maps/documentation/mobility/operations/cloud-logging/work-with-logs)."]]