Nikita  Polevoy
Nikita Polevoy

Reputation: 369

How to get logs from azure container app?

I have an Azure Container App with simple nodeJs api service. I need to read logs of this application, just to see my console.log('Hi there!').

Container App has Monitoring Logs with huge list of different queries. Which one I need to use to see my console? Or can some one provide a simple query to fetch my logs?

p.s. I want to see same logs which I can see with command:

az container logs show -n <containerName> -g <resource group>

Upvotes: 1

Views: 5290

Answers (1)

RKM
RKM

Reputation: 1389

I have tried to reproduce the issue by deploying a sample app and app service container in Azure.

To view our application console logs go to Revision Management-->click on your app-->select console logs(view details) as shown in below image:

enter image description here

enter image description here

After running the query above you can see the console logs which were generated by your application.

Upvotes: 2

Related Questions