Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Manage server logs. Is scheduled to retire by March 28, 2025.
Name | Description | Type | Status |
---|---|---|---|
az postgres server-logs download |
Download log files. |
Core | GA |
az postgres server-logs list |
List log files for a server. |
Core | GA |
Download log files.
az postgres server-logs download --name
[--ids]
[--resource-group]
[--server-name]
[--subscription]
Download log files f1 and f2 to the current directory from the server 'testsvr'.
az postgres server-logs download -g testgroup -s testsvr -n f1.log f2.log
Space-separated list of log filenames on the server to download.
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
List log files for a server.
az postgres server-logs list --resource-group
--server-name
[--file-last-written]
[--filename-contains]
[--max-file-size]
List log files for 'testsvr' modified in the last 72 hours (default value).
az postgres server-logs list -g testgroup -s testsvr
List log files for 'testsvr' modified in the last 10 hours.
az postgres server-logs list -g testgroup -s testsvr --file-last-written 10
List log files for 'testsvr' less than 30Kb in size.
az postgres server-logs list -g testgroup -s testsvr --max-file-size 30
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the Server.
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Integer in hours to indicate file last modify time, default value is 72.
The pattern that file name should match.
The file size limitation to filter files.
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
Azure CLI feedback
Azure CLI is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in