What is live log streaming?
Live log streaming is an easy and efficient way to view live logs for troubleshooting purposes. Live log streaming is designed to provide a quick view of all messages that are being sent to the app logs in the file system, without having to go through the process of locating and opening these logs. To use live logging, you connect to the live log service from the command line, and can then see text being written to the app’s logs in real time.
What logs can be streamed?
The log streaming service adds a redirect from the file system logs, so you’ll see the same information as is saved to those log files. So, if you enable verbose logging for ASP.NET Windows apps, for example, the live log stream will show all your logged messages.
How to use live log streaming
To enable live log streaming from the command line, run Azure CLI or curl commands.
To open the log stream, run the following command.Copy
az webapp log tail --name <app name> --resource-group <resource group name>
To stop viewing live logs, press Ctrl+C.
To use Curl, you need FTPS credentials. There are two types of FTPS credentials:
- Application scope. Azure automatically creates a username/password pair when you deploy a Web app, and each of your apps has their own separate set of credentials.
- User scope. You can create your own credentials for use with any Web app; you can manage these credentials in the Azure portal, as long as you already have at least one Web app, or by using Azure CLI commands.