Get your logs or errors sent to a central location.
Hello, You might have also had this problem. I've written scripts in various languages as small as unlocking an active directory account to a full student onboarding system that processes tens of thousands of students every year. But the problem is, when an exception is thrown, I may not ever hear about it because unless I'm actively looking at application logs three years after the application has been deployed, I'm probably going to miss it. So I wrote something. This is kind of reinventing the wheel I'm sure. But my solution is different because it's stupidly simple. You throw your log message, exception, innerException, StackTrace and even custom note at an API point. Give it some information as well such as application name, running environment, AKA dev, staging, dev, UAT or production, Say if the message has been generated by an operating system, application, end user, appliance, network etc then just go about your business. Every so often, log in to the UI and go through your messages. There will also shortly be a graphical dashboard but that stuff will come in a week or two when I get time. Coming soon, I will create a way of taking action on messages based on rules that are user definable. For example, when the message is an error, from the production environment and priority is critical, send an Email, or even trigger a call to another end point. For example IFTTT. Here's what I'm aiming for. CPU usage goes up on a server and I get a message on my Amazon Echo with Alexa telling me what's happened. Or let's say I'm integrating two systems and synchronizing data across. Everything is working perfectly but someone adds a new code to the data and the synchronization breaks. The system that runs this is hosted off site so I don't regularly have access to the logs. That's no problem. The message is Emailed to me so I have a full record of what happened. I can even do my investigation remotely through the exception,stack trace and inner exception. The API is asynchronous and has been tested on just one server with over 10,000 calls in one minute. So it will handle lode. If you want to try it, your welcome. https://logs.itmanagement.systems Let me know off list and I'll set you up with an account. This is not an advertisement by the way. I'm offering it to people on this list for free. I will want to try to make some money on it at some point but I have no idea how to do that yet. Here's an example of some Powershell that sends a message to the endpoint. $ClientSecret = 'RemovedForObviousReasons' $body = @{ LogMessage = "This is a log message saved by Darragh on Monday"; Exception = "This is an exception. Usually full of really long and hard to read chunks of text. " StackTrace = "You thought the exception had a lot of text. Well, wait until you see the stuff flung out by the stack trace!" InnerException = "More information that should help with debugging the problem even before you get to the application. " CustomData = "Some notes that you might want to write when you are sending the error to be stored." ClientSecret = $ClientSecret Priority = 1 # 1=High, 2=Medium,3=Low LogType = 1 # 1=Error, 2=Warning, 3=Information LogSource = 2 # 1=OS, 2=Application, 3=Network, 4=Appliance, 5=User, 6=Server ApplicationName = "DCUDashboard" EnvironmentName = "Staging" } | ConvertTo-Json Invoke-RestMethod -Uri "https://logapi.itmanagement.systems/api/client/v1/log/add" -Method 'Post' -Body $body -ContentType 'application/json' Regards Darragh Ó Héiligh Performing, Promoting and Sharing traditional Irish music Performance: www.darraghpipes.ie<http://www.darraghpipes.ie> Music at the Gate: www.musicatthegate.ie<http://www.musicatthegate.ie> Ceol FM: www.ceol.fm<http://www.ceol.fm> Tel: 00353(0)877670464 Email: darragh@ceol.fm
participants (1)
-
Darragh Ó Héiligh