App Insights Integration With Python Docker Application

Kanav Sharma 25 Reputation points
2025-01-14T12:06:40.29+00:00

Suppose my container is running python application on docker and I have xyz.log file inside the docker container which is generating logs in a specific time interval. I want to send these logs to app insights (logs). How I can achieve that?

Although I am also trying to fetch live metrics from docker container/azure container app to App Insights.

Guide me here. ?

Azure Time Series Insights
Azure Time Series Insights
An Azure internet of things (IoT) analytics platform to monitor, analyze, and visualize industrial IoT analytics data at scale.
79 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
511 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,213 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 34,386 Reputation points MVP
    2025-01-15T21:51:40.4+00:00

    Hello @Kanav Sharma,

    welcome to this moderated Azure community forum.

    According to this documentation, Console logs originate from the stderr and stdout messages are automatically logged:

    When you implement logging in your application, you can troubleshoot problems and monitor the health of your app.

    The system logs are already available:

    User's image

    These metrics are made available in the underlying Log Analytics workspace.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.