az monitor log-analytics workspace data-export
Manage data export ruls for log analytics workspace.
Commands
| az monitor log-analytics workspace data-export create |
Create a data export rule for a given workspace. |
| az monitor log-analytics workspace data-export delete |
Delete a data export rule for a given workspace. |
| az monitor log-analytics workspace data-export list |
List all data export ruleses for a given workspace. |
| az monitor log-analytics workspace data-export show |
Show a data export rule for a given workspace. |
| az monitor log-analytics workspace data-export update |
Update a data export rule for a given workspace. |
az monitor log-analytics workspace data-export create
Create a data export rule for a given workspace.
For more information, see https://docs.microsoft.com/azure/azure-monitor/platform/logs-data-export.
az monitor log-analytics workspace data-export create --destination
--name
--resource-group
--tables
--workspace-name
[--enable {false, true}]
Examples
Create a data export rule for a given workspace.
az monitor log-analytics workspace data-export create -g MyRG --workspace-name MyWS -n MyDataExport --destination {sa_id_1} --enable -t {table_name}
Required Parameters
The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If event hub namespace is provided, event hub would be created for each table automatically.
Name of the data export rule.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
An array of tables to export.
Name of the Log Analytics Workspace.
Optional Parameters
Enable this data export rule.
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 monitor log-analytics workspace data-export delete
Delete a data export rule for a given workspace.
az monitor log-analytics workspace data-export delete --name
--resource-group
--workspace-name
[--yes]
Required Parameters
Name of the data export rule.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Name of the Log Analytics Workspace.
Optional Parameters
Do not prompt for confirmation.
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 monitor log-analytics workspace data-export list
List all data export ruleses for a given workspace.
az monitor log-analytics workspace data-export list --resource-group
--workspace-name
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Name of the Log Analytics Workspace.
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 monitor log-analytics workspace data-export show
Show a data export rule for a given workspace.
az monitor log-analytics workspace data-export show --name
--resource-group
--workspace-name
Required Parameters
Name of the data export rule.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Name of the Log Analytics Workspace.
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 monitor log-analytics workspace data-export update
Update a data export rule for a given workspace.
For more information, see https://docs.microsoft.com/azure/azure-monitor/platform/logs-data-export.
az monitor log-analytics workspace data-export update --name
--resource-group
--tables
--workspace-name
[--add]
[--destination]
[--enable {false, true}]
[--force-string]
[--remove]
[--set]
Examples
Update a data export rule for a given workspace.
az monitor log-analytics workspace data-export update -g MyRG --workspace-name MyWS -n MyDataExport --destination {namespace_id} -t {table_name} --enable false
Required Parameters
Name of the data export rule.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
An array of tables to export.
Name of the Log Analytics Workspace.
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If event hub namespace is provided, event hub would be created for each table automatically.
Enable this data export rule.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
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.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ