Collecting Custom logs from Azure App service

Kumar Challa 25 Reputation points


I want to collect logs from azure app service and send them to grafana through log analytics workspace.

for that I have thoughts about installing fluentbit through shell script and running it in app service. Is this right way to do that?
If you suggest any methods that would be appreciated.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,022 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 15,351 Reputation points Microsoft Employee

    @Kumar Challa Yes, you can use Fluent Bit to collect logs from your Azure App Service and send them to Grafana through a Log Analytics workspace. Installing Fluent Bit through a shell script is one way to do it. Here are the high-level steps you can follow:

    1. Create a Log Analytics workspace in your Azure subscription.
    2. Enable diagnostic logs for your App Service and configure them to send logs to the Log Analytics workspace.
    3. Create a Linux-based App Service plan and deploy your app to it.
    4. Create a startup script that installs Fluent Bit and configures it to send logs to the Log Analytics workspace.
    5. Configure the App Service to run the startup script on startup.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful