You can save Bare Metal Orchestrator logs or audit logs to a .zip file that automatically downloads to the Downloads folder on your management console. Gathered logs are saved in JSON format.
Logs can be filtered by type and date range. Up to a maximum of 50,000 log entries are collected. If your filtered results exceed 50,000 log entries, only the first 50,000 log entries are included in the download .zip file.
The current date and time are appended to the download .zip file name. For example, the downloaded .zip file for site logs collected on April 19, 2023 at 1:30:12 pm is named as follows:
Site_logs_2023_04_19_14_30_12.zip
For audit logs, the .zip file name specifies Audit_logs instead of Site_logs.
The following is a sample entry in the extracted logs.json file:
{
"Id": "73cdf444-5045-4ffc-b11d-a1e63efef93e",
"messageid": "iVJQLYYBlcMx5fbRgkx-",
"file_name": "workspace/api/v1alpha1/site_webhook_conversion.go:42 ",
"message": " Calling conversion webhook, ConvertFrom goroutineID=7916",
"log_level": "INFO",
"service_name": "mw-site-controller-controller-manager-679f4f4f4c-wqf4c ",
"site": "gc",
"timestamp": "2023-04-19T14:30:12.183469809-06:00"
}