Unable to download exported audit logs in VMware Cloud Foundation Automation 9.1.0 and 9.1.1
search cancel

Unable to download exported audit logs in VMware Cloud Foundation Automation 9.1.0 and 9.1.1

book

Article ID: 463974

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

In the VMware Cloud Foundation (VCF) Automation portal (Administer > Activity > Audit Log), clicking Export successfully generates the audit log CSV file on the appliance. However, clicking Download Exported logs fails to open the Audit Log Exports pop-up window, preventing you from downloading the CSV file through the browser.

Environment

 

  • VMware Cloud Foundation Automation 9.1.0

  • VMware Cloud Foundation Automation 9.1.1

 

Cause

This issue occurs due to a user interface (UI) issue where the Download Exported logs action fails to trigger the Audit Log Exports pop-up dialog.

Resolution

This issue is under review with Broadcom Engineering. Subscribe to this article to receive updates on this issue.

Workaround

You can retrieve the generated audit log CSV file using the VCF Automation API or by copying the file directly from the appliance.

Option 1: Download the audit log via API (Postman)

Replace <vcfa-fqdn>, <org-name>, <API_TOKEN>, <ACCESS_TOKEN>, and <EXPORT_ID> with your environment values.

Part 1: Generate an API token

  1. Log in to the VMware Cloud Foundation Automation portal for your organization (https://<vcfa-fqdn>/tenant/<org-name>/automation/).
  2. In the top-right corner of the navigation bar, click your username/organization menu and select My Account.
  3. Select the API Tokens tab.
  4. Click NEW to generate a new token.
  5. Enter a descriptive Name for the token (and configure the expiration if prompted), then save it.
  6. Copy and securely store the generated API token value immediately, as it will not be displayed again.

Part 2: Trigger the audit log export in the UI

  1. In the VCF Automation portal, navigate to Administer > Activity > Audit Log.
  2. Click Export to generate the audit report.
  3. Wait approximately 1 minute for the export job to finish processing.

Part 3: Retrieve and download the report via Postman

  1. Exchange the API token for an access token:
    • Open a new request in Postman and set the method to POST.
    • Enter the URL: https://<vcfa-fqdn>/oauth/tenant/<org-name>/token
    • Open the Headers tab, click Bulk Edit, and paste:
      Accept:application/json
      Content-Type:application/x-www-form-urlencoded
    • Open the Body tab, select x-www-form-urlencoded, click Bulk Edit, and paste:
      grant_type:refresh_token
      refresh_token:<API_TOKEN>
    • Click Send and copy the access_token value from the 200 OK JSON response.
  2. Retrieve the completed audit export ID:
    • Open a second request in Postman and set the method to GET.
    • Enter the URL: https://<vcfa-fqdn>/event-broker/api/audit/download
    • Open the Headers tab, click Bulk Edit, and paste:
      Accept:application/json
      Authorization:Bearer <ACCESS_TOKEN>
    • Click Send.
    • In the response body, locate the export entry with "fileStatus": "COMPLETED" (or "status": "COMPLETED") and copy its id value.
  3. Download the audit log CSV:
    • Open a third request in Postman and set the method to GET.
    • Enter the URL: https://<vcfa-fqdn>/event-broker/api/audit/download/<EXPORT_ID>
    • Open the Headers tab, click Bulk Edit, and paste:
      Authorization:Bearer <ACCESS_TOKEN>
    • Click the downward arrow (▼) next to the Send button and select Send and Download.
    • Save the .csv file to your local machine.
Option 2: Copy the file directly from the appliance

If you prefer not to use the API, connect to the VCF Automation appliance node via SSH or SCP and copy the generated CSV file directly from the file system:

  • Directory Path: /var/log/services-logs/prelude/ebs-app/file-logs/
  • File Name Format: audit-log-<orgId>-<timestamp>.csv