التعامل مع الإدخالات الطويلة في السجلّات التي تتضمّن سجلات مقسَّمة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يفرض Cloud Logging حدًا أقصى على حجم السجلات الواردة يبلغ 256 كيلوبايت، ويتجاهل أي سجل أكبر من ذلك. لضمان احتفاظ Cloud Logging بسجلّاتك الكبيرة، يمكن أن يقسّمها Fleet Engine إلى سلسلة من السجلّات الأصغر حجمًا.
قد تقسم خدمة تسجيل الدخول إلى السحابة الإلكترونية السجلات التالية من Fleet Engine:
يحتوي كل إدخال في سجلّ التقسيم على الحقول التالية:
-
split.uid
: معرّف فريد لمجموعة إدخالات السجلّ التي تم تقسيمها من إدخال سجلّ أصلي مشترك. تكون قيمة هذا الحقل هي نفسها
بالنسبة إلى جميع الإدخالات المقسّمة من إدخال السجلّ الأصلي.
split.index
: تمثّل هذه السمة موضع هذا الإدخال في سلسلة الإدخالات المقسّمة.
يحمل الإدخال الأول من التقسيم الفهرس 0.split.index
. يتم أيضًا إلحاق هذا الفهرس بالحقل LogEntry.insertId
.
split.totalSplits
: عدد إدخالات السجلّ التي تم تقسيم إدخال السجلّ الأصلي إليها. تكون قيمة هذا الحقل هي نفسها لجميع الإدخالات المقسّمة من إدخال السجلّ الأصلي.
split log 1:
insertId: "XXXX-01"
split {index: 0, uuid: "XXXX"}
splitLog 2:
insertId: "XXX-02"
split {index: 1, uuid: "XXXX"}
للعثور على جميع السجلات التي تم تقسيمها من سجلّ واحد محدّد، استخدِم طلب بحث مثل:
split.uid="789+2022-02-22T12:22:22.22+05:00"
sortby split.index OR sortby insertID
إنّ بنية هذه السجلّات المقسّمة هي نفسها تقريبًا البنية الموضّحة في دليل Cloud Audit Logs. ويكمن الاختلاف الرئيسي في أنّ عملية التقسيم في سجلّات Fleet Engine تتم في الحقل jsonPayload
. لمعرفة التفاصيل والأمثلة، يُرجى الاطّلاع على تقسيم إدخالات سجلّ التدقيق.
الخطوات التالية
لاحتساب السجلات وفلترتها وفقًا لمعاييرك، عليك إنشاء مقاييس مستندة إلى السجلّ.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-09-05 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCloud Logging limits log size to 256KB, and Fleet Engine can split larger logs into smaller segments for retention.\u003c/p\u003e\n"],["\u003cp\u003eSplit logs contain unique identifiers (\u003ccode\u003esplit.uid\u003c/code\u003e), index (\u003ccode\u003esplit.index\u003c/code\u003e), and total split count (\u003ccode\u003esplit.totalSplits\u003c/code\u003e) for reassembly.\u003c/p\u003e\n"],["\u003cp\u003eYou can search for related split logs using the \u003ccode\u003esplit.uid\u003c/code\u003e and sort by \u003ccode\u003esplit.index\u003c/code\u003e or \u003ccode\u003einsertId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFleet Engine's split log structure is similar to Cloud Audit Logs, with splitting occurring in the \u003ccode\u003ejsonPayload\u003c/code\u003e field.\u003c/p\u003e\n"]]],[],null,["Cloud Logging limits the size on incoming logs to 256KB and drops\nanything bigger. To ensure that Cloud Logging retains your large\nlogs, Fleet Engine can split them into a series of smaller logs.\n\nCloud logging may split the following logs from Fleet Engine:\n\n- [SearchVehiclesLog](/maps/documentation/mobility/operations/cloud-logging/reference/trips/rest/Shared.Types/SearchVehiclesLog)\n- [ListDeliveryVehicle](/maps/documentation/mobility/operations/cloud-logging/reference/tasks/rest/Shared.Types/ListDeliveryVehiclesLog)\n- [ListTasksLog](/maps/documentation/mobility/operations/cloud-logging/reference/tasks/rest/Shared.Types/ListTasksLog)\n- [BatchCreateTasksLog](/maps/documentation/mobility/operations/cloud-logging/reference/tasks/rest/Shared.Types/BatchCreateTasksLog)\n\nEach split log entry contains the following fields:\n\n- `split.uid`: A unique identifier for the group of log entries that were split from a common original log entry. The value of this field is the same for all entries split from the original log entry.\n- `split.index`: The position of this entry in the series of split entries. The first entry from the split has index `0.split.index`. This index is also appended to the `LogEntry.insertId` field.\n- `split.totalSplits`: The number of log entries that the original log entry was split into. The value of this field is the same for all entries split from the original log entry.\n\n split log 1:\n insertId: \"XXXX-01\"\n split {index: 0, uuid: \"XXXX\"}\n\n splitLog 2:\n insertId: \"XXX-02\"\n split {index: 1, uuid: \"XXXX\"}\n\nTo find all the logs that were split from one specific log, use a query like: \n\n split.uid=\"789+2022-02-22T12:22:22.22+05:00\"\n sortby split.index OR sortby insertID\n\nThe structure of these split logs is almost the same as the structure shown in\nthe guide for Cloud Audit Logs. The major difference is that for Fleet Engine\nlogs, the split occurs in the `jsonPayload` field. For details and examples, see\n[Split audit log entries](https://cloud.google.com/logging/docs/audit/split-logs).\n\nWhat's next\n\nTo count and filter logs according to you criteria, [create log-based\nmetrics](/maps/documentation/mobility/operations/cloud-logging/metrics)."]]