Easier Way to Log Messages to Azure Without Complex Setup?

0
0
Asked By CuriousCoder123 On

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

Answered By TechnoWizard99 On

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.

Answered By DevGuru88 On

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.

ScriptJunkie -

Hmmm, that looks like it might work. Thanks for the link!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.