You can access event logs for your integrations from Google Cloud Logging. Use Cloud Logging to explore logs, create metrics and alerts, or export logs to other applications using Google Cloud Pub/Sub.
To access Cloud Logging from the Google Cloud Console, click View all products, then go to Operations > Logging.
Access to logging data is managed through Identity and Access Management (IAM) for users of your Actions project. For more details on roles and permissions for logging data, see Cloud Logging access control.
Log entries are retained for 30 days per the Cloud Logging retention policy, then scheduled for deletion. You can also delete entries on demand by using the Logs Explorer interface.
You can learn more on how to use logs effectively in the Searching Logs section of the Troubleshooting guide.
Cloud Logging provides the following resource types:
|Resource Type||Display Name||Description||Labels|
||Google Assistant Action Project||A container for the Google Cloud Project associated with an Assistant Action.||
Cloud-to-cloud projects support the following events in Cloud Logging:
|Cloud Logging Resource||Event|
|Google Assistant Action Project||SYNC intent errors|
|QUERY intent errors|
|EXECUTE intent errors|
|Account linking errors|
|Local Home SDK HandlerError|
The table below lists the schema of a
||Smart home intent request ID.|
||Elapsed time before a response was received.|
||Indicates the status of the intent response.|
The table below lists the schema of an
||Unique request ID, for example
||Elapsed time before a response was received, for example,
||Transport used for the request, for example
Optional indicator of the user action taken, for example
||Optional trait associated with this user action.|
||List of device types affected by the event, for example
||Whether the request received a successful response.|
||Whether the request routed to cloud fulfillment following an error from local fulfillment.|
Indicates the status of the intent response, such as
||Optional detailed debugging message associated with this user action.|
||Language code associated with the request.|
The table below lists the schema of a
||Notification request ID.|
||Name of the notification struct, such as "ObjectDetection".|
||Indicates the status of the notification.|
Log level setting
Cloud-to-cloud projects are set to receive error logs by default, and it is possible for developers to opt-in to receive success logs as well. This is especially useful during the development phase when you plan to capture all logs from a few agents. Additional charges may apply to your project if you exceed the logging quota.
You can control the log level for your project by:
In the Actions on Google Console, go to the Projects page.
Select your smart home project.
Choose the Develop tab, and click Actions on the side bar.
Select All in the Log control ingestion dropdown list.
Developers can create log exclusions using logging query language to further customize their logs in a more flexible way. Logging query language is also used by Logs Explorer so you can use Logs Explorer to help create queries.
You can follow the steps for creating exclusion filters at
(configure the exclusion filter for the
Developers can use Log-based metrics to track and analyze patterns within their logs. It is also possible to create custom charts and set up alerts on log-based metrics.
To start using log-based metrics for smart home, check out creating a counter log-based metric guide.
To learn more about using Cloud Logging in your project, see the following documentation:
- Pricing: Details on allotments and overage costs.
- Quotas and limits: Details on limits and retention policies for logging usage.
- Advanced logs queries: Guide to using advanced expressions to query and analyze log data.