khoailang
khoailang

Reputation: 744

filter log message with "az webapp log tail"

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?

Edited: to add a screenshot Azure CLI

Upvotes: 1

Views: 2611

Answers (2)

Joy Wang
Joy Wang

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

Sajeetharan
Sajeetharan

Reputation: 222552

Filter specific events, like Error

az webapp log tail --name appname --resource-group myResourceGroup --filter Error

Upvotes: 0

Related Questions