What's the Best Way to Store Audit Logs for an Azure Web App?

May 12, 2025 3 answers
Asked by SUNDAY_brunch
I'm looking for a solution to store audit logs for my internal web application hosted on Azure. I want to avoid creating any external dependencies like using MongoDB. Can anyone suggest software or methods specifically suited for this purpose that can be easily integrated with Azure web apps?

Answers

audit7trail
If you're looking for a cheaper alternative, you might want to write compressed Parquet files directly to Azure Blob Storage. This can help keep costs down, especially if you use automated tiering to manage your storage efficiently. The choice between these options really depends on how often you'll need to query the logs and the complexity of your queries.
Reply to this answer
relay.runner.ready
You should consider using Azure Log Analytics Workspace for this. It's pretty powerful, but keep in mind that the costs can add up quickly if you're not careful with the amount of logging you do. KQL (Kusto Query Language) is fantastic for querying your logs once they're stored there. Just make sure to fine-tune what you log to keep expenses manageable!

~+courthouse steps!: Yeah, it's definitely one way to go. Just remember, too much logging can lead to higher bills.

_roof tiles: I agree, KQL is great but the costs can be a concern.

Reply to this answer
uvIdx_3
Just a heads up, if you want to store logs in a NoSQL format for flexibility (like JSON), Log Analytics might not be the best fit since itโ€™s more SQL/table-oriented. You might want to explore other NoSQL databases offered by Azure that can accommodate changing structures in your logs.

_roof tiles: Exactly, I need that flexibility too! Any alternatives you recommend?

~+courthouse steps!: Yeah, I need to be able to adjust the schema of the logs easily as well.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions