az mysql flexible-server server-logs
Manage server logs.
Commands
Name | Description | Type | Status |
---|---|---|---|
az mysql flexible-server server-logs download |
Download log files. |
Core | GA |
az mysql flexible-server server-logs list |
List log files for a server. |
Core | GA |
az mysql flexible-server server-logs download
Download log files.
az mysql flexible-server server-logs download --name
--resource-group
--server-name
Examples
Download log files f1 and f2 to the current directory from the server 'testsvr'.
az mysql flexible-server server-logs download -g testgroup -s testsvr -n f1.log f2.log
Required Parameters
Space-separated list of log filenames on the server to download.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az mysql flexible-server server-logs list
List log files for a server.
az mysql flexible-server server-logs list --resource-group
--server-name
[--file-last-written]
[--filename-contains]
[--max-file-size]
Examples
List log files for 'testsvr' modified in the last 72 hours (default value).
az mysql flexible-server server-logs list -g testgroup -s testsvr
List log files for 'testsvr' modified in the last 10 hours.
az mysql flexible-server server-logs list -g testgroup -s testsvr --file-last-written 10
List log files for 'testsvr' less than 30Kb in size.
az mysql flexible-server server-logs list -g testgroup -s testsvr --max-file-size 30
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Optional Parameters
Integer in hours to indicate file last modify time.
The pattern that file name should match.
The file size limitation to filter files.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
Azure CLI