Reference documentation and code samples for the Stackdriver Logging V2 Client class TailLogEntriesRequest.
The parameters toTailLogEntries.
Generated from protobuf messagegoogle.logging.v2.TailLogEntriesRequest
Namespace
Google \ Cloud \ Logging \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ resource_names
array
Required. Name of a parent resource from which to retrieve log entries: * *projects/[PROJECT_ID]* *organizations/[ORGANIZATION_ID]* *billingAccounts/[BILLING_ACCOUNT_ID]* *folders/[FOLDER_ID]May alternatively be one or more views: * *projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]* *organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]* *billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]* *folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
↳ filter
string
Optional. Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed inresource_names. Referencing a parent resource that is not listed inresource_nameswill cause the filter to return no results. The maximum length of a filter is 20,000 characters.
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.
getResourceNames
Required. Name of a parent resource from which to retrieve log entries:
projects/[PROJECT_ID]
organizations/[ORGANIZATION_ID]
billingAccounts/[BILLING_ACCOUNT_ID]
folders/[FOLDER_ID]May alternatively be one or more views:
Optional. Only log entries that match the filter are returned. An empty
filter matches all log entries in the resources listed inresource_names.
Referencing a parent resource that is not listed inresource_nameswill
cause the filter to return no results. The maximum length of a filter is
20,000 characters.
Returns
Type
Description
string
setFilter
Optional. Only log entries that match the filter are returned. An empty
filter matches all log entries in the resources listed inresource_names.
Referencing a parent resource that is not listed inresource_nameswill
cause the filter to return no results. The maximum length of a filter is
20,000 characters.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getBufferWindow
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.
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.
[[["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-09-04 UTC."],[],[],null,["# Stackdriver Logging V2 Client - Class TailLogEntriesRequest (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.TailLogEntriesRequest)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.TailLogEntriesRequest)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.TailLogEntriesRequest)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.TailLogEntriesRequest)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.TailLogEntriesRequest)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.TailLogEntriesRequest)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.TailLogEntriesRequest)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.TailLogEntriesRequest)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.TailLogEntriesRequest)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.TailLogEntriesRequest) \nReference documentation and code samples for the Stackdriver Logging V2 Client class TailLogEntriesRequest.\n\nThe parameters to `TailLogEntries`.\n\nGenerated from protobuf message `google.logging.v2.TailLogEntriesRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getResourceNames\n\nRequired. 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]` 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### setResourceNames\n\nRequired. 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]` 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### getFilter\n\nOptional. Only log entries that match the filter are returned. An empty\nfilter matches all log entries in the resources listed in `resource_names`.\n\nReferencing a parent resource that is not listed in `resource_names` will\ncause the filter to return no results. The maximum length of a filter is\n20,000 characters.\n\n### setFilter\n\nOptional. Only log entries that match the filter are returned. An empty\nfilter matches all log entries in the resources listed in `resource_names`.\n\nReferencing a parent resource that is not listed in `resource_names` will\ncause the filter to return no results. The maximum length of a filter is\n20,000 characters.\n\n### getBufferWindow\n\nOptional. The amount of time to buffer log entries at the server before\nbeing returned to prevent out of order results due to late arriving log\nentries. Valid values are between 0-60000 milliseconds. Defaults to 2000\nmilliseconds.\n\n### hasBufferWindow\n\n### clearBufferWindow\n\n### setBufferWindow\n\nOptional. The amount of time to buffer log entries at the server before\nbeing returned to prevent out of order results due to late arriving log\nentries. Valid values are between 0-60000 milliseconds. Defaults to 2000\nmilliseconds."]]