logs
Creates, updates, deletes, gets or lists a logs
resource.
Overview
Name | logs |
Type | Resource |
Id | google.logging.logs |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_buckets_views_logs_list
- organizations_locations_buckets_views_logs_list
- folders_locations_buckets_views_logs_list
- billing_accounts_locations_buckets_views_logs_list
- logs_list
- projects_logs_list
- organizations_logs_list
- folders_logs_list
- billing_accounts_logs_list
Successful response
Name | Datatype | Description |
---|
Successful response
Name | Datatype | Description |
---|
Successful response
Name | Datatype | Description |
---|
Successful response
Name | Datatype | Description |
---|
Successful response
Name | Datatype | Description |
---|
Successful response
Name | Datatype | Description |
---|
Successful response
Name | Datatype | Description |
---|
Successful response
Name | Datatype | Description |
---|
Successful response
Name | Datatype | Description |
---|
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_buckets_views_logs_list | select | projectsId , locationsId , bucketsId , viewsId | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
organizations_locations_buckets_views_logs_list | select | organizationsId , locationsId , bucketsId , viewsId | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
folders_locations_buckets_views_logs_list | select | foldersId , locationsId , bucketsId , viewsId | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
billing_accounts_locations_buckets_views_logs_list | select | billingAccountsId , locationsId , bucketsId , viewsId | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
logs_list | select | parentType , parent | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
projects_logs_list | select | projectsId | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
organizations_logs_list | select | organizationsId | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
folders_logs_list | select | foldersId | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
billing_accounts_logs_list | select | billingAccountsId | resourceNames , pageSize , pageToken | Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. |
projects_logs_delete | delete | projectsId , logsId | Deletes all the log entries in a log for the global _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. | |
organizations_logs_delete | delete | organizationsId , logsId | Deletes all the log entries in a log for the global _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. | |
folders_logs_delete | delete | foldersId , logsId | Deletes all the log entries in a log for the global _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. | |
billing_accounts_logs_delete | delete | billingAccountsId , logsId | Deletes all the log entries in a log for the global _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. | |
logs_delete | delete | logName | Deletes all the log entries in a log for the global _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. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
billingAccountsId | string | |
bucketsId | string | |
foldersId | string | |
locationsId | string | |
logName | string | |
logsId | string | |
organizationsId | string | |
parent | string | |
parentType | string | |
projectsId | string | |
viewsId | string | |
pageSize | integer (int32) | |
pageToken | string | |
resourceNames | string |
SELECT
examples
- projects_locations_buckets_views_logs_list
- organizations_locations_buckets_views_logs_list
- folders_locations_buckets_views_logs_list
- billing_accounts_locations_buckets_views_logs_list
- logs_list
- projects_logs_list
- organizations_logs_list
- folders_logs_list
- billing_accounts_logs_list
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required
AND viewsId = '{{ viewsId }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required
AND viewsId = '{{ viewsId }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE foldersId = '{{ foldersId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required
AND viewsId = '{{ viewsId }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE billingAccountsId = '{{ billingAccountsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required
AND viewsId = '{{ viewsId }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE parentType = '{{ parentType }}' -- required
AND parent = '{{ parent }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE projectsId = '{{ projectsId }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE organizationsId = '{{ organizationsId }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE foldersId = '{{ foldersId }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
SELECT
*
FROM google.logging.logs
WHERE billingAccountsId = '{{ billingAccountsId }}' -- required
AND resourceNames = '{{ resourceNames }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
DELETE
examples
- projects_logs_delete
- organizations_logs_delete
- folders_logs_delete
- billing_accounts_logs_delete
- logs_delete
Deletes all the log entries in a log for the global _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.
DELETE FROM google.logging.logs
WHERE projectsId = '{{ projectsId }}' --required
AND logsId = '{{ logsId }}' --required;
Deletes all the log entries in a log for the global _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.
DELETE FROM google.logging.logs
WHERE organizationsId = '{{ organizationsId }}' --required
AND logsId = '{{ logsId }}' --required;
Deletes all the log entries in a log for the global _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.
DELETE FROM google.logging.logs
WHERE foldersId = '{{ foldersId }}' --required
AND logsId = '{{ logsId }}' --required;
Deletes all the log entries in a log for the global _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.
DELETE FROM google.logging.logs
WHERE billingAccountsId = '{{ billingAccountsId }}' --required
AND logsId = '{{ logsId }}' --required;
Deletes all the log entries in a log for the global _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.
DELETE FROM google.logging.logs
WHERE logName = '{{ logName }}' --required;