Index
ConfigServiceV2
(interface)LoggingServiceV2
(interface)MetricsServiceV2
(interface)RoutingConfigService
(interface)BigQueryDataset
(message)BigQueryOptions
(message)BucketMetadata
(message)CmekSettings
(message)CopyLogEntriesMetadata
(message)CopyLogEntriesRequest
(message)CopyLogEntriesResponse
(message)CreateBucketRequest
(message)CreateExclusionRequest
(message)CreateLinkRequest
(message)CreateLogMetricRequest
(message)CreateLogScopeRequest
(message)CreateSavedQueryRequest
(message)CreateSinkRequest
(message)CreateViewRequest
(message)DeleteBucketRequest
(message)DeleteExclusionRequest
(message)DeleteLinkRequest
(message)DeleteLogMetricRequest
(message)DeleteLogRequest
(message)DeleteLogScopeRequest
(message)DeleteSavedQueryRequest
(message)DeleteSinkRequest
(message)DeleteViewRequest
(message)GetBucketRequest
(message)GetCmekSettingsRequest
(message)GetExclusionRequest
(message)GetLinkRequest
(message)GetLogMetricRequest
(message)GetLogScopeRequest
(message)GetSavedQueryRequest
(message)GetSettingsRequest
(message)GetSinkRequest
(message)GetViewRequest
(message)IndexConfig
(message)IndexType
(enum)LifecycleState
(enum)Link
(message)LinkMetadata
(message)ListBucketsRequest
(message)ListBucketsResponse
(message)ListExclusionsRequest
(message)ListExclusionsResponse
(message)ListLinksRequest
(message)ListLinksResponse
(message)ListLogEntriesRequest
(message)ListLogEntriesResponse
(message)ListLogMetricsRequest
(message)ListLogMetricsResponse
(message)ListLogScopesRequest
(message)ListLogScopesResponse
(message)ListLogsRequest
(message)ListLogsResponse
(message)ListMonitoredResourceDescriptorsRequest
(message)ListMonitoredResourceDescriptorsResponse
(message)ListRecentQueriesRequest
(message)ListRecentQueriesResponse
(message)ListSavedQueriesRequest
(message)ListSavedQueriesResponse
(message)ListSinksRequest
(message)ListSinksResponse
(message)ListViewsRequest
(message)ListViewsResponse
(message)LocationMetadata
(message)LogBucket
(message)LogEntry
(message)LogEntryOperation
(message)LogEntrySourceLocation
(message)LogErrorGroup
(message)LogExclusion
(message)LogMetric
(message)LogMetric.ApiVersion
(enum)LogScope
(message)LogSink
(message)LogSink.VersionFormat
(enum)LogSplit
(message)LogView
(message)LoggingQuery
(message)LoggingQuery.SummaryField
(message)OperationState
(enum)OpsAnalyticsQuery
(message)RecentQuery
(message)SavedQuery
(message)SavedQuery.Visibility
(enum)Settings
(message)Settings.DefaultSinkConfig
(message)Settings.DefaultSinkConfig.FilterWriteMode
(enum)TailLogEntriesRequest
(message)TailLogEntriesResponse
(message)TailLogEntriesResponse.SuppressionInfo
(message)TailLogEntriesResponse.SuppressionInfo.Reason
(enum)UndeleteBucketRequest
(message)UpdateBucketRequest
(message)UpdateCmekSettingsRequest
(message)UpdateExclusionRequest
(message)UpdateLogMetricRequest
(message)UpdateLogScopeRequest
(message)UpdateSavedQueryRequest
(message)UpdateSettingsRequest
(message)UpdateSinkRequest
(message)UpdateViewRequest
(message)WriteLogEntriesPartialErrors
(message)WriteLogEntriesRequest
(message)WriteLogEntriesResponse
(message)
ConfigServiceV2
Service for configuring sinks used to route log entries.
CopyLogEntries |
---|
Copies a set of log entries from a log bucket to a Cloud Storage bucket.
|
CreateBucket |
---|
Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.
|
CreateBucketAsync |
---|
Creates a log bucket asynchronously that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.
|
CreateExclusion |
---|
Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
|
CreateLink |
---|
Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.
|
CreateLogScope |
---|
Creates a log scope.
|
CreateSavedQuery |
---|
Creates a new SavedQuery for the user making the request.
|
CreateSink |
---|
Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's
|
CreateView |
---|
Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.
|
DeleteBucket |
---|
Deletes a log bucket. Changes the bucket's
|
DeleteExclusion |
---|
Deletes an exclusion in the _Default sink.
|
DeleteLink |
---|
Deletes a link. This will also delete the corresponding BigQuery linked dataset.
|
DeleteLogScope |
---|
Deletes a log scope.
|
DeleteSavedQuery |
---|
Deletes an existing SavedQuery that was created by the user making the request.
|
DeleteSink |
---|
Deletes a sink. If the sink has a unique
|
DeleteView |
---|
Deletes a view on a log bucket. If an
|
GetBucket |
---|
Gets a log bucket.
|
GetCmekSettings |
---|
Gets the Logging CMEK settings for the given resource. Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations, and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. See Enabling CMEK for Log Router for more information.
|
GetExclusion |
---|
Gets the description of an exclusion in the _Default sink.
|
GetLink |
---|
Gets a link.
|
GetLogScope |
---|
Gets a log scope.
|
GetSavedQuery |
---|
Returns all data associated with the requested query.
|
GetSettings |
---|
Gets the settings for the given resource. Note: Settings can be retrieved for Google Cloud projects, folders, organizations, and billing accounts. See View default resource settings for Logging for more information.
|
GetSink |
---|
Gets a sink.
|
GetView |
---|
Gets a view on a log bucket.
|
ListBuckets |
---|
Lists log buckets.
|
ListExclusions |
---|
Lists all the exclusions on the _Default sink in a parent resource.
|
ListLinks |
---|
Lists links.
|
ListLogScopes |
---|
Lists log scopes.
|
ListRecentQueries |
---|
Lists the RecentQueries that were created by the user making the request.
|
ListSavedQueries |
---|
Lists the SavedQueries that were created by the user making the request.
|
ListSinks |
---|
Lists sinks.
|
ListViews |
---|
Lists views on a log bucket.
|
UndeleteBucket |
---|
Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.
|
UpdateBucket |
---|
Updates a log bucket. If the bucket has a After a bucket has been created, the bucket's location cannot be changed.
|
UpdateBucketAsync |
---|
Updates a log bucket asynchronously. If the bucket has a After a bucket has been created, the bucket's location cannot be changed.
|
UpdateCmekSettings |
---|
Updates the Log Router CMEK settings for the given resource. Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.
See Enabling CMEK for Log Router for more information.
|
UpdateExclusion |
---|
Changes one or more properties of an existing exclusion in the _Default sink.
|
UpdateLogScope |
---|
Updates a log scope.
|
UpdateSavedQuery |
---|
Updates an existing SavedQuery.
|
UpdateSettings |
---|
Updates the settings for the given resource. This method applies to all feature configurations for organization and folders.
See Configure default settings for organizations and folders for more information.
|
UpdateSink |
---|
Updates a sink. This method replaces the values of the The updated sink might also have a new
|
UpdateView |
---|
Updates a view on a log bucket. This method replaces the value of the
|
LoggingServiceV2
Service for storing and querying logs.
DeleteLog |
---|
Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
|
ListLogEntries |
---|
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.
|
ListLogs |
---|
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
|
ListMonitoredResourceDescriptors |
---|
Lists the descriptors for monitored resource types used by Logging.
|
TailLogEntries |
---|
Streaming read of log entries as they are received. Until the stream is terminated, it will continue reading logs.
|
WriteLogEntries |
---|
Writes 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
|
MetricsServiceV2
Service for configuring logs-based metrics.
CreateLogMetric |
---|
Creates a logs-based metric.
|
DeleteLogMetric |
---|
Deletes a logs-based metric.
|
GetLogMetric |
---|
Gets a logs-based metric.
|
ListLogMetrics |
---|
Lists logs-based metrics.
|
UpdateLogMetric |
---|
Creates or updates a logs-based metric.
|
RoutingConfigService
Currently, the RoutingConfigService provides endpoints for routing destinations for log analytic buckets and metric buckets, as well as creating, getting, updating, and deleting metric buckets and the corresponding metric links.
Destinations returned from this API can be treated as canonical. Before the results are returned, permissions for the route are evaluated. Any routes with invalid permissions are dropped from the results.
BigQueryDataset
Describes a BigQuery dataset that was created by a link.
Fields | |
---|---|
dataset_ |
Output only. The full resource name of the BigQuery dataset. The DATASET_ID will match the ID of the link, so the link must match the naming restrictions of BigQuery datasets (alphanumeric characters and underscores only). The dataset will have a resource path of "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]" |
BigQueryOptions
Options that change functionality of a sink exporting data to BigQuery.
Fields | |
---|---|
use_ |
Optional. Whether to use BigQuery's partition tables. By default, Cloud Logging creates dated tables based on the log entries' timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax has to be used instead. In both cases, tables are sharded based on UTC timezone. |
uses_ |
Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use. All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false. |
BucketMetadata
Metadata for LongRunningUpdateBucket Operations.
Fields | |
---|---|
start_ |
The create time of an operation. |
end_ |
The end time of an operation. |
state |
Output only. State of an operation. |
Union field
|
|
create_ |
LongRunningCreateBucket RPC request. |
update_ |
LongRunningUpdateBucket RPC request. |
CmekSettings
Describes the customer-managed encryption key (CMEK) settings associated with a project, folder, organization, billing account, or flexible resource.
Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.
See Enabling CMEK for Log Router for more information.
Fields | |
---|---|
name |
Output only. The resource name of the CMEK settings. |
kms_ |
Optional. The resource name for the configured Cloud KMS key. KMS key name format:
For example:
To enable CMEK for the Log Router, set this field to a valid The Cloud KMS key used by the Log Router can be updated by changing the To disable CMEK for the Log Router, set this field to an empty string. See Enabling CMEK for Log Router for more information. |
kms_ |
Output only. The CryptoKeyVersion resource name for the configured Cloud KMS key. KMS key name format:
For example:
This is a read-only field used to convey the specific configured CryptoKeyVersion of If this field is populated, the |
service_ |
Output only. The service account that will be used by the Log Router to access your Cloud KMS key. Before enabling CMEK for Log Router, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account that the Log Router will use to access your Cloud KMS key. Use See Enabling CMEK for Log Router for more information. |
CopyLogEntriesMetadata
Metadata for CopyLogEntries long running operations.
Fields | |
---|---|
start_ |
The create time of an operation. |
end_ |
The end time of an operation. |
state |
Output only. State of an operation. |
cancellation_ |
Identifies whether the user has requested cancellation of the operation. |
request |
CopyLogEntries RPC request. This field is deprecated and not used. |
progress |
Estimated progress of the operation (0 - 100%). |
writer_ |
The IAM identity of a service account that must be granted access to the destination. If the service account is not granted permission to the destination within an hour, the operation will be cancelled. For example: |
source |
Source from which to copy log entries. For example, a log bucket:
|
destination |
Destination to which to copy log entries. For example, a Cloud Storage bucket:
|
verb |
Name of the verb executed by the operation. For example,
|
CopyLogEntriesRequest
The parameters to CopyLogEntries.
Fields | |
---|---|
name |
Required. Log bucket from which to copy log entries. For example:
Authorization requires the following IAM permission on the specified resource
|
filter |
Optional. A filter specifying which log entries to copy. The filter must be no more than 20k characters. An empty filter matches all log entries. |
destination |
Required. Destination to which to copy log entries. |
CopyLogEntriesResponse
Response type for CopyLogEntries long running operations.
Fields | |
---|---|
log_ |
Number of log entries copied. |
CreateBucketRequest
The parameters to CreateBucket
.
Fields | |
---|---|
parent |
Required. The resource in which to create the log bucket:
For example:
Authorization requires the following IAM permission on the specified resource
|
bucket_ |
Required. A client-assigned identifier such as |
bucket |
Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored. |
CreateExclusionRequest
The parameters to CreateExclusion
.
Fields | |
---|---|
parent |
Required. The parent resource in which to create the exclusion:
For examples:
Authorization requires the following IAM permission on the specified resource
|
exclusion |
Required. The new exclusion, whose |
CreateLinkRequest
The parameters to CreateLink.
Fields | |
---|---|
parent |
Required. The full resource name of the bucket to create a link for.
Authorization requires the following IAM permission on the specified resource
|
link |
Required. The new link. |
link_ |
Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. |
CreateLogMetricRequest
The parameters to CreateLogMetric.
Fields | |
---|---|
parent |
Required. The resource name of the project in which to create the metric:
The new metric must be provided in the request. Authorization requires the following IAM permission on the specified resource
|
metric |
Required. The new logs-based metric, which must not have an identifier that already exists. |
CreateLogScopeRequest
The parameters to CreateLogScope
.
Fields | |
---|---|
parent |
Required. The parent project in which to create the log scope
For example:
Authorization requires the following IAM permission on the specified resource
|
log_ |
Required. A client-assigned identifier such as |
log_ |
Required. The new log scope. |
CreateSavedQueryRequest
The parameters to 'CreateSavedQuery'.
Fields | |
---|---|
parent |
Required. The parent resource in which to create the saved query:
For example:
Authorization requires the following IAM permission on the specified resource
|
saved_ |
Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name. If the The
First character has to be alphanumeric. |
saved_ |
Required. The new saved query. |
CreateSinkRequest
The parameters to CreateSink
.
Fields | |
---|---|
parent |
Required. The resource in which to create the sink:
For examples:
Authorization requires the following IAM permission on the specified resource
|
sink |
Required. The new sink, whose |
unique_ |
Optional. Determines the kind of IAM identity returned as If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of |
custom_ |
Optional. The service account provided by the caller that will be used to write the log entries. The format must be |
CreateViewRequest
The parameters to CreateView
.
Fields | |
---|---|
parent |
Required. The bucket in which to create the view
For example:
Authorization requires the following IAM permission on the specified resource
|
view_ |
Required. A client-assigned identifier such as |
view |
Required. The new view. |
DeleteBucketRequest
The parameters to DeleteBucket
.
Fields | |
---|---|
name |
Required. The full resource name of the bucket to delete.
For example:
Authorization requires the following IAM permission on the specified resource
|
DeleteExclusionRequest
The parameters to DeleteExclusion
.
Fields | |
---|---|
name |
Required. The resource name of an existing exclusion to delete:
For example:
Authorization requires the following IAM permission on the specified resource
|
DeleteLinkRequest
The parameters to DeleteLink.
Fields | |
---|---|
name |
Required. The full resource name of the link to delete.
Authorization requires the following IAM permission on the specified resource
|
DeleteLogMetricRequest
The parameters to DeleteLogMetric.
Fields | |
---|---|
metric_ |
Required. The resource name of the metric to delete:
Authorization requires the following IAM permission on the specified resource
|
DeleteLogRequest
The parameters to DeleteLog.
Fields | |
---|---|
log_ |
Required. The resource name of the log to delete:
For more information about log names, see Authorization requires the following IAM permission on the specified resource
|
DeleteLogScopeRequest
The parameters to DeleteLogScope
. The _Default
log scope cannot be deleted.
Fields | |
---|---|
name |
Required. The resource name of the log scope to delete:
For example:
Authorization requires the following IAM permission on the specified resource
|
DeleteSavedQueryRequest
The parameters to 'DeleteSavedQuery'.
Fields | |
---|---|
name |
Required. The full resource name of the saved query to delete.
For example:
Authorization requires the following IAM permission on the specified resource
|
DeleteSinkRequest
The parameters to DeleteSink
.
Fields | |
---|---|
sink_ |
Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:
For example:
Authorization requires the following IAM permission on the specified resource
|
DeleteViewRequest
The parameters to DeleteView
.
Fields | |
---|---|
name |
Required. The full resource name of the view to delete:
For example:
Authorization requires the following IAM permission on the specified resource
|
GetBucketRequest
The parameters to GetBucket
.
Fields | |
---|---|
name |
Required. The resource name of the bucket:
For example:
Authorization requires the following IAM permission on the specified resource
|
GetCmekSettingsRequest
The parameters to GetCmekSettings
.
See Enabling CMEK for Log Router for more information.
Fields | |
---|---|
name |
Required. The resource for which to retrieve CMEK settings.
For example:
Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations, and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. Authorization requires the following IAM permission on the specified resource
|
GetExclusionRequest
The parameters to GetExclusion
.
Fields | |
---|---|
name |
Required. The resource name of an existing exclusion:
For example:
Authorization requires the following IAM permission on the specified resource
|
GetLinkRequest
The parameters to GetLink.
Fields | |
---|---|
name |
Required. The resource name of the link:
Authorization requires the following IAM permission on the specified resource
|
GetLogMetricRequest
The parameters to GetLogMetric.
Fields | |
---|---|
metric_ |
Required. The resource name of the desired metric:
Authorization requires the following IAM permission on the specified resource
|
GetLogScopeRequest
The parameters to GetLogScope
.
Fields | |
---|---|
name |
Required. The resource name of the log scope:
For example:
Authorization requires the following IAM permission on the specified resource
|
GetSavedQueryRequest
The parameters to 'GetSavedQuery'
Fields | |
---|---|
name |
Required. The resource name of the saved query.
For example:
Authorization requires the following IAM permission on the specified resource
|
GetSettingsRequest
The parameters to GetSettings
.
See View default resource settings for Logging for more information.
Fields | |
---|---|
name |
Required. The resource for which to retrieve settings.
For example:
Note: Settings can be retrieved for Google Cloud projects, folders, organizations, and billing accounts. Authorization requires the following IAM permission on the specified resource
|
GetSinkRequest
The parameters to GetSink
.
Fields | |
---|---|
sink_ |
Required. The resource name of the sink:
For example:
Authorization requires the following IAM permission on the specified resource
|
GetViewRequest
The parameters to GetView
.
Fields | |
---|---|
name |
Required. The resource name of the policy:
For example:
Authorization requires the following IAM permission on the specified resource
|
IndexConfig
Configuration for an indexed field.
Fields | |
---|---|
field_ |
Required. The LogEntry field path to index. Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation]( https://cloud.google.com/logging/docs/analyze/custom-index) for details. For example: |
type |
Required. The type of data in this index. |
create_ |
Output only. The timestamp when the index was last modified. This is used to return the timestamp, and will be ignored if supplied during update. |
IndexType
IndexType is used for custom indexing. It describes the type of an indexed field.
Enums | |
---|---|
INDEX_TYPE_UNSPECIFIED |
The index's type is unspecified. |
INDEX_TYPE_STRING |
The index is a string-type index. |
INDEX_TYPE_INTEGER |
The index is a integer-type index. |
LifecycleState
LogBucket lifecycle states.
Enums | |
---|---|
LIFECYCLE_STATE_UNSPECIFIED |
Unspecified state. This is only used/useful for distinguishing unset values. |
ACTIVE |
The normal and active state. |
DELETE_REQUESTED |
The resource has been marked for deletion by the user. For some resources (e.g. buckets), this can be reversed by an un-delete operation. |
UPDATING |
The resource has been marked for an update by the user. It will remain in this state until the update is complete. |
CREATING |
The resource has been marked for creation by the user. It will remain in this state until the creation is complete. |
FAILED |
The resource is in an INTERNAL error state. |
Link
Describes a link connected to an analytics enabled bucket.
Fields | |
---|---|
name |
Output only. The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it.
For example: `projects/my-project/locations/global/buckets/my-bucket/links/my_link |
description |
Optional. Describes this link. The maximum length of the description is 8000 characters. |
create_ |
Output only. The creation timestamp of the link. |
lifecycle_ |
Output only. The resource lifecycle state. |
bigquery_ |
Optional. The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket. |
LinkMetadata
Metadata for long running Link operations.
Fields | |
---|---|
start_ |
The start time of an operation. |
end_ |
The end time of an operation. |
state |
Output only. State of an operation. |
Union field
|
|
create_ |
CreateLink RPC request. |
delete_ |
DeleteLink RPC request. |
ListBucketsRequest
The parameters to ListBuckets
.
Fields | |
---|---|
parent |
Required. The parent resource whose buckets are to be listed:
Note: The locations portion of the resource must be specified, but supplying the character Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
ListBucketsResponse
The response from ListBuckets.
Fields | |
---|---|
buckets[] |
A list of buckets. |
next_ |
If there might be more results than appear in this response, then |
ListExclusionsRequest
The parameters to ListExclusions
.
Fields | |
---|---|
parent |
Required. The parent resource whose exclusions are to be listed.
Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
ListExclusionsResponse
Result returned from ListExclusions
.
Fields | |
---|---|
exclusions[] |
A list of exclusions. |
next_ |
If there might be more results than appear in this response, then |
ListLinksRequest
The parameters to ListLinks.
Fields | |
---|---|
parent |
Required. The parent resource whose links are to be listed:
Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. |
ListLinksResponse
The response from ListLinks.
Fields | |
---|---|
links[] |
A list of links. |
next_ |
If there might be more results than those appearing in this response, then |
ListLogEntriesRequest
The parameters to ListLogEntries
.
Fields | |
---|---|
project_ids[] |
Optional. Deprecated. Use |
resource_ |
Required. Names of one or more parent resources from which to retrieve log entries. Resources may either be resource containers or specific
Projects listed in the Authorization requires one or more of the following IAM permissions on the specified resource
|
filter |
Optional. A filter that chooses which log entries to return. For more information, see Logging query language. Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in To make queries faster, you can make the filter more selective by using restrictions on indexed fields as well as limit the time range of the query by adding range restrictions on the |
order_ |
Optional. How the results should be sorted. Presently, the only permitted values are We recommend setting the |
page_ |
Optional. The maximum number of results to return from this request. Default is 50. If the value is negative, the request is rejected. The presence of |
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
ListLogEntriesResponse
Result returned from ListLogEntries
.
Fields | |
---|---|
entries[] |
A list of log entries. If |
next_ |
If there might be more results than those appearing in this response, then If a value for |
ListLogMetricsRequest
The parameters to ListLogMetrics.
Fields | |
---|---|
parent |
Required. The name of the project containing the metrics:
Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
ListLogMetricsResponse
Result returned from ListLogMetrics.
Fields | |
---|---|
metrics[] |
A list of logs-based metrics. |
next_ |
If there might be more results than appear in this response, then |
ListLogScopesRequest
The parameters to ListLogScopes
.
Fields | |
---|---|
parent |
Required. The parent resource whose log scopes are to be listed:
Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
ListLogScopesResponse
The response from ListLogScopes
. Every project has a _Default
log scope that cannot be modified or deleted.
Fields | |
---|---|
log_ |
A list of log scopes. |
next_ |
If there might be more results than appear in this response, then |
ListLogsRequest
The parameters to ListLogs.
Fields | |
---|---|
parent |
Required. The resource name to list logs for:
Authorization requires the following IAM permission on the specified resource
|
resource_ |
Optional. List of resource names to list logs for:
To support legacy queries, it could also be:
The resource name in the Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
ListLogsResponse
Result returned from ListLogs.
Fields | |
---|---|
log_ |
A list of log names. For example, |
next_ |
If there might be more results than those appearing in this response, then |
ListMonitoredResourceDescriptorsRequest
The parameters to ListMonitoredResourceDescriptors
Fields | |
---|---|
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
ListMonitoredResourceDescriptorsResponse
Result returned from ListMonitoredResourceDescriptors.
Fields | |
---|---|
resource_ |
A list of resource descriptors. |
next_ |
If there might be more results than those appearing in this response, then |
ListRecentQueriesRequest
The parameters to 'ListRecentQueries'.
Fields | |
---|---|
parent |
Required. The resource to which the listed queries belong.
For example:
Note: The location portion of the resource must be specified, but supplying the character Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
filter |
Optional. Specifies the type ("Logging" or "OpsAnalytics") of the recent queries to list. The only valid value for this field is one of the two allowable
|
ListRecentQueriesResponse
The response from ListRecentQueries.
Fields | |
---|---|
recent_ |
A list of recent queries. |
next_ |
If there might be more results than appear in this response, then |
unreachable[] |
The unreachable resources. Each resource can be either 1) a saved query if a specific query is unreachable or 2) a location if a specific location is unreachable.
For example:
If there are unreachable resources, the response will first return pages that contain recent queries, and then return pages that contain the unreachable resources. |
ListSavedQueriesRequest
The parameters to 'ListSavedQueries'.
Fields | |
---|---|
parent |
Required. The resource to which the listed queries belong.
For example:
Note: The locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character
Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
filter |
Optional. Specifies the type ("Logging" or "OpsAnalytics") and the visibility (PRIVATE or SHARED) of the saved queries to list. If provided, the filter must contain either the The two supported
The two supported
For example:
|
ListSavedQueriesResponse
The response from ListSavedQueries.
Fields | |
---|---|
saved_ |
A list of saved queries. |
next_ |
If there might be more results than appear in this response, then |
unreachable[] |
The unreachable resources. It can be either 1) a saved query if a specific query is unreachable or 2) a location if a specific location is unreachabe.
For example:
If there are unreachable resources, the response will first return pages that contain saved queries, and then return pages that contain the unreachable resources. |
ListSinksRequest
The parameters to ListSinks
.
Fields | |
---|---|
parent |
Required. The parent resource whose sinks are to be listed:
Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
filter |
Optional. A filter expression to constrain the sinks returned. Today, this only supports the following strings:
Description of scopes below. ALL: Includes all of the sinks which can be returned in any other scope. ANCESTOR: Includes intercepting sinks owned by ancestor resources. DEFAULT: Includes sinks owned by When the empty string is provided, then the filter 'in_scope("DEFAULT")' is applied. |
ListSinksResponse
Result returned from ListSinks
.
Fields | |
---|---|
sinks[] |
A list of sinks. |
next_ |
If there might be more results than appear in this response, then |
ListViewsRequest
The parameters to ListViews
.
Fields | |
---|---|
parent |
Required. The bucket whose views are to be listed:
Authorization requires the following IAM permission on the specified resource
|
page_ |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
page_ |
Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of |
ListViewsResponse
The response from ListViews.
Fields | |
---|---|
views[] |
A list of views. |
next_ |
If there might be more results than appear in this response, then |
LocationMetadata
Cloud Logging specific location metadata.
Fields | |
---|---|
log_ |
Indicates whether or not Log Analytics features are supported in the given location. |
LogBucket
Describes a repository in which log entries are stored.
Fields | |
---|---|
name |
Output only. The resource name of the bucket. For example:
For a list of supported locations, see Supported Regions For the location of After a bucket has been created, the location cannot be changed. |
description |
Optional. Describes this bucket. |
create_ |
Output only. The creation timestamp of the bucket. This is not set for any of the default buckets. |
update_ |
Output only. The last update timestamp of the bucket. |
retention_ |
Optional. Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used. |
locked |
Optional. Whether the bucket is locked. The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty. |
lifecycle_ |
Output only. The bucket lifecycle state. |
analytics_ |
Optional. Whether log analytics is enabled for this bucket. Once enabled, log analytics features cannot be disabled. |
restricted_ |
Optional. Log entry field paths that are denied access in this bucket. The following fields and their children are eligible: Restricting a repeated field will restrict all values. Adding a parent will block all child fields. (e.g. |
index_ |
Optional. A list of indexed fields and related configuration data. |
cmek_ |
Optional. The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed. |
LogEntry
An individual entry in a log.
Fields | |
---|---|
log_ |
Required. The resource name of the log to which this log entry belongs:
A project number may be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the
For backward compatibility, if |
resource |
Required. The monitored resource that produced this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error. |
timestamp |
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Logging assigns it the current time. Timestamps have nanosecond accuracy, but trailing zeros in the fractional seconds might be omitted when the timestamp is displayed. Incoming log entries must have timestamps that don't exceed the logs retention period in the past, and that don't exceed 24 hours in the future. Log entries outside those time boundaries are rejected by Logging. |
receive_ |
Output only. The time the log entry was received by Logging. |
severity |
Optional. The severity of the log entry. The default value is |
insert_ |
Optional. A unique identifier for the log entry. If you provide a value, then Logging considers other log entries in the same project, with the same If the In queries, the |
http_ |
Optional. Information about the HTTP request associated with this log entry, if applicable. |
labels |
Optional. A map of key, value pairs that provides additional information about the log entry. The labels can be user-defined or system-defined. User-defined labels are arbitrary key, value pairs that you can use to classify logs. System-defined labels are defined by GCP services for platform logs. They have two components - a service namespace component and the attribute name. For example: Cloud Logging truncates label keys that exceed 512 B and label values that exceed 64 KB upon their associated log entry being written. The truncation is indicated by an ellipsis at the end of the character string. |
metadata |
Output only. Deprecated. This field is not used by Logging. Any value written to it is cleared. |
operation |
Optional. Information about an operation associated with the log entry, if applicable. |
trace |
Optional. The REST resource name of the trace being written to Cloud Trace in association with this log entry. For example, if your trace data is stored in the Cloud project "my-trace-project" and if the service that is creating the log entry receives a trace header that includes the trace ID "12345", then the service should use "projects/my-trace-project/traces/12345". The |
span_ |
Optional. The ID of the Cloud Trace span associated with the current operation in which the log is being written. For example, if a span has the REST resource name of "projects/some-project/traces/some-trace/spans/some-span-id", then the A Span represents a single operation within a trace. Whereas a trace may involve multiple different microservices running on multiple different machines, a span generally corresponds to a single logical operation being performed in a single instance of a microservice on one specific machine. Spans are the nodes within the tree that is a trace. Applications that are instrumented for tracing will generally assign a new, unique span ID on each incoming request. It is also common to create and record additional spans corresponding to internal processing elements as well as issuing requests to dependencies. The span ID is expected to be a 16-character, hexadecimal encoding of an 8-byte array and should not be zero. It should be unique within the trace and should, ideally, be generated in a manner that is uniformly random. Example values:
|
trace_ |
Optional. The sampling decision of the span associated with the log entry at the time the log entry was created. This field corresponds to the sampled flag in the W3C trace-context specification. A non-sampled |
source_ |
Optional. Source code location information associated with the log entry, if any. |
split |
Optional. Information indicating this LogEntry is part of a sequence of multiple log entries split from a single LogEntry. |
error_ |
Output only. The Error Reporting error groups associated with this LogEntry. Error Reporting sets the values for this field during error group creation. For more information, see [View error details]( https://cloud.google.com/error-reporting/docs/viewing-errors#view_error_details) This field isn't available during log routing |
Union field payload . The log entry payload, which can be one of multiple types. payload can be only one of the following: |
|
proto_ |
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads. The following protocol buffer types are supported; user-defined types are not supported: "type.googleapis.com/google.cloud.audit.AuditLog" "type.googleapis.com/google.appengine.logging.v1.RequestLog" |
text_ |
The log entry payload, represented as a Unicode string (UTF-8). |
json_ |
The log entry payload, represented as a structure that is expressed as a JSON object. |
LogEntryOperation
Additional information about a potentially long-running operation with which a log entry is associated.
Fields | |
---|---|
id |
Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation. |
producer |
Optional. An arbitrary producer identifier. The combination of |
first |
Optional. Set this to True if this is the first log entry in the operation. |
last |
Optional. Set this to True if this is the last log entry in the operation. |
LogEntrySourceLocation
Additional information about the source code location that produced the log entry.
Fields | |
---|---|
file |
Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name. |
line |
Optional. Line within the source file. 1-based; 0 indicates no line number available. |
function |
Optional. Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information may be used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: |
LogErrorGroup
Contains metadata that associates the LogEntry to Error Reporting error groups.
Fields | |
---|---|
id |
The id is a unique identifier for a particular error group; it is the last part of the error group resource name: |
LogExclusion
Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don't apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
Fields | |
---|---|
name |
Output only. A client-assigned identifier, such as |
description |
Optional. A description of this exclusion. |
filter |
Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:
|
disabled |
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can |
create_ |
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions. |
update_ |
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions. |
LogMetric
Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter in a given time interval.
Logs-based metrics can also be used to extract values from logs and create a distribution of the values. The distribution records the statistics of the extracted values along with an optional histogram of the values as specified by the bucket options.
Fields | |
---|---|
name |
Required. The client-assigned metric identifier. Examples: Metric identifiers are limited to 100 characters and can include only the following characters: This field is the |
resource_ |
Output only. The resource name of the metric:
|
description |
Optional. A description of this metric, which is used in documentation. The maximum length of the description is 8000 characters. |
filter |
Required. An advanced logs filter which is used to match log entries. Example:
The maximum length of the filter is 20000 characters. |
bucket_ |
Optional. The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects are supported. The bucket has to be in the same project as the metric. For example:
If empty, then the Log Metric is considered a non-Bucket Log Metric. |
disabled |
Optional. If set to True, then this metric is disabled and it does not generate any points. |
metric_ |
Optional. The metric descriptor associated with the logs-based metric. If unspecified, it uses a default metric descriptor with a DELTA metric kind, INT64 value type, with no labels and a unit of "1". Such a metric counts the number of log entries matching the The To create a logs-based metric that records a distribution of log values, a DELTA metric kind with a DISTRIBUTION value type must be used along with a Each label in the metric descriptor must have a matching label name as the key and an extractor expression as the value in the The |
value_ |
Optional. A
The result of the extraction must be convertible to a double type, as the distribution always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution. Example: |
label_ |
Optional. A map from a label key string to an extractor expression which is used to extract data from a log entry field and assign as the label value. Each label key specified in the LabelDescriptor must have an associated extractor expression in this map. The syntax of the extractor expression is the same as for the The extracted value is converted to the type defined in the label descriptor. If either the extraction or the type conversion fails, the label will have a default value. The default value for a string label is an empty string, for an integer label its 0, and for a boolean label its Note that there are upper bounds on the maximum number of labels and the number of active time series that are allowed in a project. |
bucket_ |
Optional. The |
create_ |
Output only. The creation timestamp of the metric. This field may not be present for older metrics. |
update_ |
Output only. The last update timestamp of the metric. This field may not be present for older metrics. |
version |
Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed. |
ApiVersion
Logging API version.
Enums | |
---|---|
V2 |
Logging API v2. |
V1 |
Logging API v1. |
LogScope
Describes a group of resources to read log entries from.
Fields | |
---|---|
name |
Output only. The resource name of the log scope. Log scopes are only available in the
|
resource_ |
Required. Names of one or more parent resources:
May alternatively be one or more views:
A log scope can include a maximum of 50 projects and a maximum of 100 resources in total. |
description |
Optional. Describes this log scope. The maximum length of the description is 8000 characters. |
create_ |
Output only. The creation timestamp of the log scope. |
update_ |
Output only. The last update timestamp of the log scope. |
LogSink
Describes a sink used to export log entries to one of the following destinations:
- a Cloud Logging log bucket,
- a Cloud Storage bucket,
- a BigQuery dataset,
- a Pub/Sub topic,
- a Cloud project.
A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
Fields | |
---|---|
name |
Output only. The client-assigned sink identifier, unique within the project. For example: Sink identifiers are limited to 100 characters and can include only the following characters:
First character has to be alphanumeric. |
resource_ |
Output only. The resource name of the sink.
For example: projects/my_project/sinks/SINK_NAME |
destination |
Required. The export destination:
The sink's |
filter |
Optional. An advanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter. For example:
|
description |
Optional. A description of this sink. The maximum length of the description is 8000 characters. |
disabled |
Optional. If set to true, then this sink is disabled and it does not export any log entries. |
exclusions[] |
Optional. Log entries that match any of these exclusion filters will not be exported. If a log entry is matched by both |
output_version_format |
Deprecated. This field is unused. |
writer_ |
Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink's destination. This field is either set by specifying Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Granting Access for a Resource. Consult the destination service's documentation to determine the appropriate IAM roles to assign to the identity. Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required. |
include_ |
Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink's parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink's parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink's filter expression. For example, if this field is true, then the filter To only export entries from certain child projects, filter on the project part of the log name: logName:("projects/test-project1/" OR "projects/test-project2/") AND resource.type=gce_instance |
intercept_ |
Optional. This field applies only to sinks owned by organizations and folders. When the value of 'intercept_children' is true, the following restrictions apply:
Also, the following behaviors apply:
|
create_ |
Output only. The creation timestamp of the sink. This field may not be present for older sinks. |
update_ |
Output only. The last update timestamp of the sink. This field may not be present for older sinks. |
Union field options . Destination dependent options. options can be only one of the following: |
|
bigquery_ |
Optional. Options that affect sinks exporting data to BigQuery. |
VersionFormat
Deprecated. This is unused.
Enums | |
---|---|
VERSION_FORMAT_UNSPECIFIED |
An unspecified format version that will default to V2. |
V2 |
LogEntry version 2 format. |
V1 |
LogEntry version 1 format. |
LogSplit
Additional information used to correlate multiple log entries. Used when a single LogEntry would exceed the Google Cloud Logging size limit and is split across multiple log entries.
Fields | |
---|---|
uid |
A globally unique identifier for all log entries in a sequence of split log entries. All log entries with the same |LogSplit.uid| are assumed to be part of the same sequence of split log entries. |
index |
The index of this LogEntry in the sequence of split log entries. Log entries are given |index| values 0, 1, ..., n-1 for a sequence of n log entries. |
total_ |
The total number of log entries that the original LogEntry was split into. |
LogView
Describes a view over log entries in a bucket.
Fields | |
---|---|
name |
Output only. The resource name of the view. For example:
|
description |
Optional. Describes this view. |
create_ |
Output only. The creation timestamp of the view. |
update_ |
Output only. The last update timestamp of the view. |
filter |
Optional. Filter that restricts which log entries in a bucket are visible in this view. Filters must be logical conjunctions that use the AND operator, and they can use any of the following qualifiers:
They can also use the negations of these qualifiers with the NOT operator. For example: SOURCE("projects/myproject") AND resource.type = "gce_instance" AND NOT LOG_ID("stdout") |
LoggingQuery
Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.
In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results.
Fields | |
---|---|
filter |
Required. An advanced query using the Logging Query Language. The maximum length of the filter is 20000 characters. |
summary_ |
Optional. The set of summary fields to display for this saved query. |
Union field summary_field_width . The user's setting for number of characters to display for each summary field. In the Logs Explorer page of Google Cloud console, negative values are ignored and the default (0) means there is no truncation. summary_field_width can be only one of the following: |
|
summary_ |
Characters will be counted from the start of the string. |
summary_ |
Characters will be counted from the end of the string. |
SummaryField
A field from the LogEntry that is added to the summary line for a query in the Logs Explorer.
Fields | |
---|---|
field |
Optional. The field from the LogEntry to include in the summary line, for example |
OperationState
List of different operation states. High level state of the operation. This is used to report the job's current state to the user. Once a long running operation is created, the current state of the operation can be queried even before the operation is finished and the final result is available.
Enums | |
---|---|
OPERATION_STATE_UNSPECIFIED |
Should not be used. |
OPERATION_STATE_SCHEDULED |
The operation is scheduled. |
OPERATION_STATE_WAITING_FOR_PERMISSIONS |
Waiting for necessary permissions. |
OPERATION_STATE_RUNNING |
The operation is running. |
OPERATION_STATE_SUCCEEDED |
The operation was completed successfully. |
OPERATION_STATE_FAILED |
The operation failed. |
OPERATION_STATE_CANCELLED |
The operation was cancelled by the user. |
OPERATION_STATE_PENDING |
The operation is waiting for quota. |
OpsAnalyticsQuery
Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.
Preview: This is a preview feature and may be subject to change before final release.
Fields | |
---|---|
sql_ |
Required. A logs analytics SQL query, which generally follows BigQuery format. This is the SQL query that appears in the Log Analytics UI's query editor. |
RecentQuery
Describes a recent query executed on the Logs Explorer or Log Analytics page within the last ~ 30 days.
Fields | |
---|---|
name |
Output only. Resource name of the recent query. In the format:
For a list of supported locations, see Supported Regions The [QUERY_ID] is a system generated alphanumeric ID. |
last_ |
Output only. The timestamp when this query was last run. |
Union field query_oneof . The query that was executed. query_oneof can be only one of the following: |
|
logging_ |
Logging query that can be executed in Logs Explorer or via Logging API. |
ops_ |
Analytics query that can be executed in Log Analytics. |
SavedQuery
Describes a query that has been saved by a user.
Fields | |
---|---|
name |
Output only. Resource name of the saved query. In the format:
For a list of supported locations, see Supported Regions After the saved query is created, the location cannot be changed. If the user doesn't provide a [QUERY_ID], the system will generate an alphanumeric ID. |
display_ |
Required. The user specified title for the SavedQuery. |
description |
Optional. A human readable description of the saved query. |
create_ |
Output only. The timestamp when the saved query was created. |
update_ |
Output only. The timestamp when the saved query was last updated. |
visibility |
Required. The visibility status of this query, which determines its ownership. |
Union field query_oneof . The query that is saved. query_oneof can be only one of the following: |
|
logging_ |
Logging query that can be executed in Logs Explorer or via Logging API. |
ops_ |
Analytics query that can be executed in Log Analytics. |
Visibility
Saved query visibility.
Enums | |
---|---|
VISIBILITY_UNSPECIFIED |
The saved query visibility is unspecified. A CreateSavedQuery request with an unspecified visibility will be rejected. |
PRIVATE |
The saved query is only visible to the user that created it. |
SHARED |
The saved query is visible to anyone in the project. |
Settings
Describes the settings associated with a project, folder, organization, or billing account.
Fields | |
---|---|
name |
Output only. The resource name of the settings. |
kms_ |
Optional. The resource name for the configured Cloud KMS key. KMS key name format:
For example:
To enable CMEK, set this field to a valid The Cloud KMS key used by the Log Router can be updated by changing the To disable CMEK for the Log Router, set this field to an empty string. See Enabling CMEK for Log Router for more information. |
kms_ |
Output only. The service account that will be used by the Log Router to access your Cloud KMS key. Before enabling CMEK, you must first assign the role See Enabling CMEK for Log Router for more information. |
storage_ |
Optional. The storage location for the Example value: Note: this setting does not affect the location of resources where a location is explicitly provided when created, such as custom log buckets. |
disable_ |
Optional. If set to true, the |
default_ |
Optional. Overrides the built-in configuration for |
logging_ |
Output only. The service account for the given resource container, such as project or folder. Log sinks use this service account as their |
DefaultSinkConfig
Describes the custom _Default
sink configuration that is used to override the built-in _Default
sink configuration in newly created resource containers, such as projects or folders.
Fields | |
---|---|
filter |
Optional. An advanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter. For example:
To match all logs, don't add exclusions and use the following line as the value of
Cannot be empty or unset when the value of |
exclusions[] |
Optional. Specifies the set of exclusions to be added to the |
mode |
Required. Determines the behavior to apply to the built-in Exclusions are always appended, as built-in |
FilterWriteMode
Behavior to apply to the built-in _Default
sink inclusion filter.
Enums | |
---|---|
FILTER_WRITE_MODE_UNSPECIFIED |
The filter's write mode is unspecified. This mode must not be used. |
APPEND |
The contents of filter will be appended to the built-in _Default sink filter. Using the append mode with an empty filter will keep the sink inclusion filter unchanged. |
OVERWRITE |
The contents of filter will overwrite the built-in _Default sink filter. |
TailLogEntriesRequest
The parameters to TailLogEntries
.
Fields | |
---|---|
resource_ |
Required. Name of a parent resource from which to retrieve log entries:
May alternatively be one or more views:
Authorization requires one or more of the following IAM permissions on the specified resource
|
filter |
Optional. Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in |
buffer_ |
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. |
TailLogEntriesResponse
Result returned from TailLogEntries
.
Fields | |
---|---|
entries[] |
A list of log entries. Each response in the stream will order entries with increasing values of |
suppression_ |
If entries that otherwise would have been included in the session were not sent back to the client, counts of relevant entries omitted from the session with the reason that they were not included. There will be at most one of each reason per response. The counts represent the number of suppressed entries since the last streamed response. |
SuppressionInfo
Information about entries that were omitted from the session.
Fields | |
---|---|
reason |
The reason that entries were omitted from the session. |
suppressed_ |
A lower bound on the count of entries omitted due to |
Reason
An indicator of why entries were omitted.
Enums | |
---|---|
REASON_UNSPECIFIED |
Unexpected default. |
RATE_LIMIT |
Indicates suppression occurred due to relevant entries being received in excess of rate limits. For quotas and limits, see Logging API quotas and limits. |
NOT_CONSUMED |
Indicates suppression occurred due to the client not consuming responses quickly enough. |
UndeleteBucketRequest
The parameters to UndeleteBucket
.
Fields | |
---|---|
name |
Required. The full resource name of the bucket to undelete.
For example:
Authorization requires the following IAM permission on the specified resource
|
UpdateBucketRequest
The parameters to UpdateBucket
.
Fields | |
---|---|
name |
Required. The full resource name of the bucket to update.
For example:
Authorization requires the following IAM permission on the specified resource
|
bucket |
Required. The updated bucket. |
update_ |
Required. Field mask that specifies the fields in For a detailed For example: |
UpdateCmekSettingsRequest
The parameters to UpdateCmekSettings
.
See Enabling CMEK for Log Router for more information.
Fields | |
---|---|
name |
Required. The resource name for the CMEK settings to update.
For example:
Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. Authorization requires the following IAM permission on the specified resource
|
cmek_ |
Required. The CMEK settings to update. See Enabling CMEK for Log Router for more information. |
update_ |
Optional. Field mask identifying which fields from See For example: |
UpdateExclusionRequest
The parameters to UpdateExclusion
.
Fields | |
---|---|
name |
Required. The resource name of the exclusion to update:
For example:
Authorization requires the following IAM permission on the specified resource
|
exclusion |
Required. New values for the existing exclusion. Only the fields specified in |
update_ |
Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the For example, to change the filter and description of an exclusion, specify an |
UpdateLogMetricRequest
The parameters to UpdateLogMetric.
Fields | |
---|---|
metric_ |
Required. The resource name of the metric to update:
The updated metric must be provided in the request and it's Authorization requires the following IAM permission on the specified resource
|
metric |
Required. The updated metric. |
UpdateLogScopeRequest
The parameters to UpdateLogScope
. The _Default
log scope cannot be modified.
Fields | |
---|---|
log_ |
Required. The updated log scope. Authorization requires the following IAM permission on the specified resource
|
update_ |
Optional. Field mask that specifies the fields in For a detailed For example: |
UpdateSavedQueryRequest
The parameters to 'UpdateSavedQuery'.
Fields | |
---|---|
saved_ |
Required. The updated value for the query. The
Authorization requires the following IAM permission on the specified resource
|
update_ |
Required. A non-empty list of fields to change in the existing saved query. Fields are relative to the To update all mutable fields, specify an For example, to change the description and query filter text of a saved query, specify an |
UpdateSettingsRequest
The parameters to UpdateSettings
.
See Configure default settings for organizations and folders for more information.
Fields | |
---|---|
name |
Required. The resource name for the settings to update.
For example:
Authorization requires the following IAM permission on the specified resource
|
settings |
Required. The settings to update. See Enabling CMEK for Log Router for more information. |
update_ |
Optional. Field mask identifying which fields from See For example: |
UpdateSinkRequest
The parameters to UpdateSink
.
Fields | |
---|---|
sink_ |
Required. The full resource name of the sink to update, including the parent resource and the sink identifier:
For example:
Authorization requires the following IAM permission on the specified resource
|
sink |
Required. The updated sink, whose name is the same identifier that appears as part of |
unique_ |
Optional. See
|
custom_ |
Optional. The service account provided by the caller that will be used to write the log entries. The format must be |
update_ |
Optional. Field mask that specifies the fields in An empty
At some point in the future, behavior will be removed and specifying an empty For a detailed For example: |
UpdateViewRequest
The parameters to UpdateView
.
Fields | |
---|---|
name |
Required. The full resource name of the view to update
For example:
Authorization requires the following IAM permission on the specified resource
|
view |
Required. The updated view. |
update_ |
Optional. Field mask that specifies the fields in For a detailed For example: |
WriteLogEntriesPartialErrors
Error details for WriteLogEntries with partial success.
Fields | |
---|---|
log_ |
When Failed requests for which no entries are written will not include per-entry errors. |
WriteLogEntriesRequest
The parameters to WriteLogEntries.
Fields | |
---|---|
log_ |
Optional. A default log resource name that is assigned to all log entries in
The permission Authorization requires the following IAM permission on the specified resource
|
resource |
Optional. A default monitored resource object that is assigned to all log entries in
See |
labels |
Optional. Default labels that are added to the |
entries[] |
Required. The log entries to send to Logging. The order of log entries in this list does not matter. Values supplied in this method's If the Log entries with timestamps that are more than the logs retention period in the past or more than 24 hours in the future will not be available when calling To improve throughput and to avoid exceeding the quota limit for calls to Authorization requires the following IAM permission on the specified resource
|
partial_ |
Optional. Whether a batch's valid entries should be written even if some other entry failed due to a permanent error such as INVALID_ARGUMENT or PERMISSION_DENIED. If any entry failed, then the response status is the response status of one of the failed entries. The response will include error details in |
dry_ |
Optional. If true, the request should expect normal response, but the entries won't be persisted nor exported. Useful for checking whether the logging API endpoints are working properly before sending valuable data. |
WriteLogEntriesResponse
This type has no fields.
Result returned from WriteLogEntries.