Stay organized with collectionsSave and categorize content based on your preferences.
Enable Logging
Transfer Appliance uses logging to export certain system logs generated on the
appliance to Google Cloud Observability making it easier to access them.
The steps to enable logging depend on whether you've set uponline transfer:
If you'veset up online transfer, and granted
theLogging Log Writerrole to the service account, no further
configuration is required.
If you've set up online transfer, but didn't add theLogging Log Writerrole,add the roleto your user-managed service account at the project level. No need to
regenerate the service account key after adding or changing roles.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Logging\n\nEnable Logging\n--------------\n\nTransfer Appliance uses logging to export certain system logs generated on the\nappliance to Google Cloud Observability making it easier to access them.\n\nThe steps to enable logging depend on whether you've set up\n[online transfer](/transfer-appliance/docs/4.0/online-transfer):\n\n- If you've [set up online transfer](/transfer-appliance/docs/4.0/prepare-online), and granted\n the `Logging Log Writer` role to the service account, no further\n configuration is required.\n\n- If you've set up online transfer, but didn't add the `Logging Log Writer`\n role,\n [add the role](/iam/docs/granting-changing-revoking-access#granting-console)\n to your user-managed service account at the project level. No need to\n regenerate the service account key after adding or changing roles.\n\n- If you haven't set up online transfer, follow the instructions to\n [create and configure a user-managed service account](/transfer-appliance/docs/4.0/prepare-online#user_sa). Only the\n `Logging Log Writer` role is required for logging.\n\nOnce you've completed the required steps:\n\n1. [Connect to the appliance](/transfer-appliance/docs/4.0/receive-appliance#connecting).\n2. Start reporting logs from the appliance\n\n`ta logging start`\n\nDisable logging on the appliance\n--------------------------------\n\nTo stop reporting logs from the appliance run the following command from the\nTransfer Appliance command line:\n\n`ta logging stop`\n\nView logs\n---------\n\nTo query for logs, you can use the `label.sessionID` field in the Google Cloud's\nGoogle Cloud Observability. \n\n labels.sessionID={sessionID}\n\nThe following are some of the logs that are exported:\n\n- Fluent Bit\n\n- Docker\n\n- Kernel\n\n- Metadata partition\n\n - capture\n\n - ta_check\n\n - activation_service\n\nYou can view the logs in Cloud Logging by using the Google Cloud console,\nthe Google Cloud CLI, or the Logging API.\n\nTroubleshooting\n---------------\n\n`An error occurred while enabling logging`\n\nIf the service account key file `/tmp/key.json` is not found on the appliance,\nan error is returned.\n\nRefer to [Create and configure a user-managed service account](/transfer-appliance/docs/4.0/prepare-online#user_sa) for\ninstructions on configuring a service account and copying the key file to your\nappliance."]]