Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Esta página contém instruções sobre como acessar os relatórios históricos integrados do gerenciador de relatórios em um formato CSV exportado para um bucket do Cloud Storage.
Ele também fornece instruções sobre como modificar o período de retenção dos dados de relatórios.
Modificar o período de retenção de dados
Por padrão, os dados dos relatórios são mantidos de acordo com o período de retenção definido no gerenciador de relatórios. Por padrão, o período de retenção
é definido como um ano. Com a opção Modificar o período de retenção de dados, é possível estender o período de retenção para até 10 anos e modificar o período de retenção entre 1 dia e 10 anos.
Se você reduzir o período de retenção de dados, não será possível recuperar os dados
do período reduzido. Por exemplo, mudar o período de retenção de dados de 10 para 8 anos resulta na perda dos dados de relatórios dos 2 anos mais antigos.
Use as instruções a seguir para modificar o período de retenção de dados:
Clique na guia Relatórios e selecione Exportar relatórios históricos no menu suspenso.
Clique em Modificar o período de retenção de dados.
No campo Reter dados por, insira o período de retenção e selecione Ano, Mês, Semana ou Dia no menu suspenso.
Marque a caixa de seleção Selecione para confirmar que você quer modificar o período de retenção de dados.
Clique em Salvar.
Pode levar um dia para que o período de retenção modificado entre em vigor.
Exportar relatórios históricos
Para exportar relatórios históricos, você precisa de:
Um bucket do Cloud Storage. Esse bucket serve como destino do relatório exportado. Crie um bucket do Cloud Storage
ou use um bucket atual.
Atribua o papel do IAM Criador de objetos do Storage (roles/storage.objectCreator) ao bucket. Essa função fornece permissões para acessar o bucket do Cloud Storage em que o relatório será exportado. A atribuição do papel ao bucket é uma atividade única.
Receber a função do IAM de usuário de backup e DR (roles/backupdr.backupUser) para exportar relatórios.
Use as instruções a seguir para exportar relatórios históricos para um bucket do Cloud Storage:
Clique na guia Relatórios e selecione Exportar relatórios históricos no menu suspenso.
Clique no ícone calendar_month e selecione as datas De e Para. A data De selecionável é limitada com base no período de retenção configurado para seus relatórios. A data máxima Até que você pode selecionar é ontem.
Na seção Relatório a ser exportado, selecione os relatórios de uma das categorias a seguir que você quer exportar.
Auditoria
Jobs
Proteção
Compliance do plano de backup
Resumo
Utilização
No campo Nome do bucket, insira o nome do bucket que você criou para exportar os relatórios integrados. Se você não tiver exportado um relatório nos últimos 90 dias, será necessário inserir novamente o nome do bucket.
Para atribuir as permissões ao bucket do Cloud Storage, faça o seguinte.
Esse papel fornece acesso ao bucket do Cloud Storage para onde o relatório será exportado.
Acesse o console Google Cloud e clique em Ativar o Cloud Shell.
Copie e cole o comando exibido no console de gerenciamento.
Essa função fornece permissões para acessar o bucket do Cloud Storage em que o relatório será exportado.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-18 UTC."],[[["\u003cp\u003eThis guide outlines the process for exporting historical reports in CSV format to a Cloud Storage bucket from the report manager.\u003c/p\u003e\n"],["\u003cp\u003eYou can adjust the data retention period for your reports, ranging from 1 day to 10 years, with the default retention period being one year.\u003c/p\u003e\n"],["\u003cp\u003eTo export reports, you need a Cloud Storage bucket and must have the Storage Object Creator and Backup and DR Backup User IAM roles assigned.\u003c/p\u003e\n"],["\u003cp\u003eModifying the data retention period can lead to the loss of older reporting data if the retention period is shortened, and this is restricted to Backup and DR Admins.\u003c/p\u003e\n"],["\u003cp\u003eOnce exported, the reports are accessible in the designated Cloud Storage bucket, allowing you to select and download the CSV file you require.\u003c/p\u003e\n"]]],[],null,["# Access historical reports\n\nThis page provides instructions on how to access the report manager's built-in\nhistorical reports in a CSV format that are exported to a Cloud Storage bucket.\nIt also provides instructions on how to modify the data retention period of the\nreporting data.\n\nModify data retention period\n----------------------------\n\nBy default, the reporting data for your reports is retained as per the existing\nretention period defined in the report manager. By default, the retention period\nis set to one year. With **Modify data retention period**, you can extend the\nretention period up to 10 years and modify the retention period between 1 day and 10 years.\n\nIf you reduce the data retention period, you won't be able to retrieve the data\nfor the period that has been reduced. For example, changing the data retention\nperiod from 10 years to 8 years results in the loss of reporting data for\nthe oldest 2 years.\n| **Note:** Only Backup and DR Admin can modify the data retention period. To modify data retention period, ask your administrator to grant you the Backup and DR Admin (`roles/backupdr.admin`) IAM role.\n\nUse the following instructions to modify data retention period:\n\n1. Click the **Reports** tab and select **Export historical reports** from the drop-down menu.\n2. Click **Modify data retention period**.\n3. In the **Retain data for** the field, enter the retention period and select **Year** , **Month** , **Week** , or **Day** from the drop-down.\n4. Select the **Select to confirm that you would like to modify the data retention period** checkbox.\n5. Click **Save**.\n\n It can take one day for the modified retention period to take effect.\n\nExport historical reports\n-------------------------\n\nTo export historical reports, you need the following:\n\n- A Cloud Storage bucket. This bucket serves as the destination for the exported report. You can [Create a new Cloud Storage bucket](/storage/docs/creating-buckets) or use an existing bucket.\n- Assign the Storage Object Creator (`roles/storage.objectCreator`) IAM role to the bucket. This role provides permissions to access to the Cloud Storage bucket where the report is to be exported. Assigning the role to the bucket is a one-time activity.\n- Be assigned with the Backup and DR Backup User (`roles/backupdr.backupUser`) IAM role to export reports.\n\nUse the following instructions to export historical reports to a Cloud Storage bucket:\n\n1. Click the **Reports** tab and select **Export historical reports** from the drop-down menu.\n2. Click the calendar_month icon and select\n **From** and **To** dates. The selectable **From** date is limited based on the\n retention period configured for your reports. The maximum **To** date that you\n can select is yesterday.\n\n3. From the **Report to export** section, select reports from one of the following categories that you want to export.\n\n - Audit\n - Jobs\n - Protection\n - Backup plan compliance\n - Summary\n - Utilization\n4. In the **Bucket name** field, enter the bucket name that you created to\n export the built-in reports. If you didn't export a report in the last 90 days, you'll need to re-enter the\n bucket name.\n\n5. To assign the permissions to the Cloud Storage bucket, do the following.\n This role provides access to the Cloud Storage bucket where the report is to be exported.\n\n 1. Go to the Google Cloud console and click **Activate cloud shell**.\n 2. Copy and paste the command that is displayed in the management console.\n This role provides permissions to access the Cloud Storage bucket where\n the report to be exported.\n\n gcloud storage buckets add-iam-policy-binding gs://\u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e --member=\u003cvar translate=\"no\"\u003eSERVICE_ACCOUNT\u003c/var\u003e --role=roles/storage.objectCreator\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e: the name that is given to storage bucket.\n - \u003cvar translate=\"no\"\u003eSERVICE_ACCOUNT\u003c/var\u003e: the service account associated with storage bucket. For example, my-service-account@my-project.iam.gserviceaccount.com.\n6. After assigning the permissions, go to the management console, and select the **Prerequisites** checkbox.\n\n7. Click **Export**.\n\n8. Optional: Click **View details** to view the detailed export status of reports.\n\n The reports are exported to a Cloud Storage **Buckets** in a CSV format.\n | **Note:** You cannot run more than one export at a time. If you attempt to initiate an export while an export is already in progress, it displays an error message.\n\nAccess the exported reports in Cloud Storage bucket\n---------------------------------------------------\n\nUse the following instructions to access the exported reports in a Cloud Storage bucket:\n\n1. In the Google Cloud console, go to the Cloud Storage **Buckets** page. \n\n [Go to Buckets](https://console.cloud.google.com/storage/browser)\n2. Select the bucket that you have used to export reports.\n3. Select a report and click **Download**."]]