Druudik
Druudik

Reputation: 1015

Store stdout and stderr logs of Azure App Service into Azure Blob Storage

I am trying to store logs of Node.js web application (basically whole output of stdout and stderr) to the Azure Blob Storage. I've tried turning stuff on in App Service logs, Diagnostic settings but nothing seems to work. The only way how I can store logs (however not in Blob storage but on the App Service File System) is by using Application Logging (Filesystem) option. The problem with this option is that it is automatically turned off after 12 hours.

It is written here that they only support .NET applications but I am not sure that I've understood it correctly. It seemed to me that such a essential functionality must be somehow supported.

So I wanted to ask, is there some other way or library that can be used for storing logs of Node.js web app in the Blob storage?

Upvotes: 1

Views: 1765

Answers (1)

Chris Melinn
Chris Melinn

Reputation: 2076

The recommended approach for logging with an Azure App Service is usually Application Insights (see here and here and here for more information). You can configure retention policies for blob storage (if needed beyond the defaults)

Upvotes: 1

Related Questions