Skip to main content

entries

Creates, updates, deletes, gets or lists a entries resource.

Overview

Nameentries
TypeResource
Idgoogle.logging.entries

Fields

NameDatatypeDescription
entriesarrayA list of log entries. If entries is empty, nextPageToken may still be returned, indicating that more entries may exist. See nextPageToken for more information.
nextPageTokenstringIf there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.If a value for next_page_token appears and the entries field is empty, it means that the search found no log entries so far but it did not have time to search all the possible log entries. Retry the method with this value for page_token to continue the search. Alternatively, consider speeding up the search by changing your filter to specify a single log name or resource type, or to narrow the time range of the search.

Methods

NameAccessible byRequired ParamsDescription
entries_listSELECTLists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).
entries_copyEXECCopies a set of log entries from a log bucket to a Cloud Storage bucket.
entries_tailEXECStreaming read of log entries as they are received. Until the stream is terminated, it will continue reading logs.
entries_writeEXECWrites log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resource names (projects, organizations, billing accounts or folders), where the resource name for a log entry is determined from its logName field.

SELECT examples

Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).

SELECT
entries,
nextPageToken
FROM google.logging.entries
;