I'm looking to develop a simple script, whether in PowerShell, Python, or a similar language, that can send log messages to Azure. In AWS CloudWatch Logs, setting up a "Log Group" and "Log Stream" to write logs is pretty straightforward. However, I've found Azure requires a lot of initial setup through different interfaces just to get basic custom logging to work. Is there a more straightforward method to log messages in Azure without all this pre-configuration? Honestly, I don't think I should have to define a custom log schema just to log basic messages in the cloud. Here's the guide that I followed: https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-portal
2 Answers
I feel you! The Azure logging setup can be quite a hassle. It's frustrating to have to jump through so many hoops just to log a few messages. You're definitely not alone in this struggle!
If you're okay using the customEvents table, there’s a way you can check out: https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-add-modify?tabs=aspnetcore#send-custom-events. This might simplify logging for you.
Hmmm, that looks like it might work. Thanks for the link!
Thanks for confirming that it's not just me. It's crazy how hard it is just to write some basic logs. Honestly, I’m not a big fan of the AWS CloudWatch "Log Group" and "Log Stream" setup either, but even that's easier than what Azure offers.