Reputation: 744
Is it possible to filter out message logs from Azure by the using the Azure CLI, like this
az webapp log tail
I see some posts mention the parameter --filter
, however, it looks like that filter has been retired, isn't it?
https://learn.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az_webapp_log_tail
Is there any workaround for that?
Upvotes: 1
Views: 2611
Reputation: 42043
Looks like this doc is old, there is no --filter
parameter both in az webapp log tail --help
or this link az webapp log tail
in the latest version.
If you just want to filter with Error
, you could use --only-show-errors
parameter.
az webapp log tail --name appname --resource-group myResourceGroup --only-show-errors
Or if you want to increase logging verbosity, you could use --verbose
.
az webapp log tail --name appname --resource-group myResourceGroup --verbose
Upvotes: 3
Reputation: 222552
Filter specific events, like Error
az webapp log tail --name appname --resource-group myResourceGroup --filter Error
Upvotes: 0