Background
This article will introduce how to download the logs from Azure Storage Account for Azure BigAnimal hosted cluster.
Step 1 Generate the token information from Monitoring & Logging
In order to access PG logs, you need to generate a token from the BigAnimal console. Click the corresponding button to get the token value and save it
Step 2 Download the logs
NOTE: The token is a sensitive value and a real token should not be made publicly available.
Now that you have the token, you can use it to download logs using e.g. azcopy:
export TOKEN="https://pglogsxxxxxx.blob.core.windows.net/p-xxxx=2015-04-05&ss=b&srt=cso&sp=rl&st=2023-10-12T11%3A18%3A46.0000000Z&se=2023-11-11T11%3A18%3A46.0000000Z&spr=https&sig=v8jg1L1zxxxxU2t4qaExxxxxxxR%2B4Zg%3D"
azcopy copy $TOKEN . --recursive
For example: