0

I have many azure functions. I want to store logs of every azure function at one single location. I first stored all logs in azure append blob. But now I want to store and visualize in real time. I found some solution like loggly.com for centralized solution. Is there any solution in azure? If yes, what is it? If no, what is other options do I have?

Shrirang
  • 1,286
  • 10
  • 23
  • Have you tried Azure Application Insights? – DFord Dec 10 '19 at 16:51
  • Yes. But it is separate for each azure function. I want only one logging system for all azure functions. For example I have tried using append blob to append all logs coming from different azure functions in a single file. I have one more need. Can I send custom logs to app insights? Like I want to send logs like azure function 1,started, time, GUID, filename, containername, etc. This will be one row of logs – Shrirang Dec 11 '19 at 06:53

1 Answers1

7

You should create an Application Insights resource. Then use the same instrumentation key to all your Azure Functions. Here's a step by step how to do it:

https://medium.com/@WorkloadRancher/step-by-step-add-application-insights-to-azure-function-http-triggers-8d10d19c21fc

Thiago Custodio
  • 17,332
  • 6
  • 45
  • 90
  • Can I send custom logs to app insights? Like I want to send logs like azure function 1,started, time, GUID, filename, containername, etc. This will be one row of logs. Basically I want to store my logs in table view in application insights and query them. – Shrirang Dec 11 '19 at 07:27
  • absolutely. all messages logged using ILogger will be transfered to Application Insights. – Thiago Custodio Dec 11 '19 at 19:31