Reputation: 727
I am working on a first-time project on Azure. We have created Azure Functions apps written in python.
I would like to know how to store my app logs in blob storage. Just to clarify, I mean the logs I have written in my code using python's logging module, not the logs Azure collects automatically. In particular, I would like to store the same (live) logs I can see in log stream to some blob storage.
Thanks so much in advance!!
Upvotes: 0
Views: 1422
Reputation: 1864
Thank you PierreLucGiguere-5297. Posting your suggestion as an answer to help other community members.
Azure Functions offers an integration with Azure Monitor Logs to monitor functions. You can configure Azure Functions to send system-generated and user-generated logs to Azure Monitor Logs.
Instead of sending it to "log analytics" you can archive it to a "storage account". For that you need a client tool that works with Azure Storage.
You can refer to How to send Azure Function App logs to Blob Storage?, Azure Functions Python developer guide and Azure Blob storage bindings for Azure Functions overview
Upvotes: 1