Skip to main content

logs

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

Overview

Namelogs
TypeResource
Idgoogle.logging.logs

Fields

NameDatatypeDescription
column_anonstring

Methods

NameAccessible byRequired ParamsDescription
billing_accounts_locations_buckets_views_logs_listSELECTbillingAccountsId, bucketsId, locationsId, viewsIdLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
billing_accounts_logs_listSELECTbillingAccountsIdLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
folders_locations_buckets_views_logs_listSELECTbucketsId, foldersId, locationsId, viewsIdLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
folders_logs_listSELECTfoldersIdLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
logs_listSELECTparent, parentTypeLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
organizations_locations_buckets_views_logs_listSELECTbucketsId, locationsId, organizationsId, viewsIdLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
organizations_logs_listSELECTorganizationsIdLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
projects_locations_buckets_views_logs_listSELECTbucketsId, locationsId, projectsId, viewsIdLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
projects_logs_listSELECTprojectsIdLists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
billing_accounts_logs_deleteDELETEbillingAccountsId, logsIdDeletes 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.
folders_logs_deleteDELETEfoldersId, logsIdDeletes 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.
logs_deleteDELETElogNameDeletes 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.
organizations_logs_deleteDELETElogsId, organizationsIdDeletes 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.
projects_logs_deleteDELETElogsId, projectsIdDeletes 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.

SELECT examples

Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

SELECT
column_anon
FROM google.logging.logs
WHERE foldersId = '{{ foldersId }}';

DELETE example

Deletes the specified logs resource.

/*+ delete */
DELETE FROM google.logging.logs
WHERE logName = '{{ logName }}';