Easier Way to Log Messages to Azure Without Complex Setup?
Asked by
CuriousCoder123
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
Answers
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.
Reply to this answer
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!
LogMasterFlex: 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.
Reply to this answer
Add your answer
Answers are reviewed before publication.
ScriptJunkie: Hmmm, that looks like it might work. Thanks for the link!