ورودهای لاگ طولانی را با گزارشهای تقسیم شده مدیریت کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
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
ساختار این گزارشهای تقسیمبندی تقریباً مشابه ساختاری است که در راهنمای گزارشهای حسابرسی ابری نشان داده شده است. تفاوت عمده این است که برای گزارش های Fleet Engine، تقسیم در فیلد jsonPayload
رخ می دهد. برای جزئیات و مثالها، به تقسیم ورودیهای گزارش حسابرسی مراجعه کنید.
بعدش چی
برای شمارش و فیلتر کردن گزارشها بر اساس معیارهای خود، معیارهای مبتنی بر گزارش ایجاد کنید .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-09-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-09-04 بهوقت ساعت هماهنگ جهانی."],[[["\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)."]]