Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::TailLogEntriesRequest.
The parameters to TailLogEntries.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#buffer_window
defbuffer_window()->::Google::Protobuf::Duration
Returns
(::Google::Protobuf::Duration) — Optional. The amount of time to buffer log entries at the server before
being returned to prevent out of order results due to late arriving log
entries. Valid values are between 0-60000 milliseconds. Defaults to 2000
milliseconds.
value (::Google::Protobuf::Duration) — Optional. The amount of time to buffer log entries at the server before
being returned to prevent out of order results due to late arriving log
entries. Valid values are between 0-60000 milliseconds. Defaults to 2000
milliseconds.
Returns
(::Google::Protobuf::Duration) — Optional. The amount of time to buffer log entries at the server before
being returned to prevent out of order results due to late arriving log
entries. Valid values are between 0-60000 milliseconds. Defaults to 2000
milliseconds.
#filter
deffilter()->::String
Returns
(::String) — Optional. Only log entries that match the filter are returned. An empty
filter matches all log entries in the resources listed in resource_names.
Referencing a parent resource that is not listed in resource_names will
cause the filter to return no results. The maximum length of a filter is
20,000 characters.
#filter=
deffilter=(value)->::String
Parameter
value (::String) — Optional. Only log entries that match the filter are returned. An empty
filter matches all log entries in the resources listed in resource_names.
Referencing a parent resource that is not listed in resource_names will
cause the filter to return no results. The maximum length of a filter is
20,000 characters.
Returns
(::String) — Optional. Only log entries that match the filter are returned. An empty
filter matches all log entries in the resources listed in resource_names.
Referencing a parent resource that is not listed in resource_names will
cause the filter to return no results. The maximum length of a filter is
20,000 characters.
#resource_names
defresource_names()->::Array<::String>
Returns
(::Array<::String>) —
Required. Name of a parent resource from which to retrieve log entries:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Logging V2 API - Class Google::Cloud::Logging::V2::TailLogEntriesRequest (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Cloud-Logging-V2-TailLogEntriesRequest)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Cloud-Logging-V2-TailLogEntriesRequest) \nReference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::TailLogEntriesRequest.\n\nThe parameters to `TailLogEntries`. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #buffer_window\n\n def buffer_window() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.\n\n### #buffer_window=\n\n def buffer_window=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.\n\n### #filter\n\n def filter() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in `resource_names`. Referencing a parent resource that is not listed in `resource_names` will cause the filter to return no results. The maximum length of a filter is 20,000 characters.\n\n### #filter=\n\n def filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in `resource_names`. Referencing a parent resource that is not listed in `resource_names` will cause the filter to return no results. The maximum length of a filter is 20,000 characters. \n**Returns**\n\n- (::String) --- Optional. Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in `resource_names`. Referencing a parent resource that is not listed in `resource_names` will cause the filter to return no results. The maximum length of a filter is 20,000 characters.\n\n### #resource_names\n\n def resource_names() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Required. Name of a parent resource from which to retrieve log entries:\n\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n - `folders/[FOLDER_ID]`\n\n May alternatively be one or more views:\n - `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n\n### #resource_names=\n\n def resource_names=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) ---\n\n Required. Name of a parent resource from which to retrieve log entries:\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n - `folders/[FOLDER_ID]`\n\n May alternatively be one or more views:\n - `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n- `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Required. Name of a parent resource from which to retrieve log entries:\n\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n - `folders/[FOLDER_ID]`\n\n May alternatively be one or more views:\n - `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`"]]