0

We have a requirement to log all the errors/warnings on to Azure Blog Storage in JSON format (with specific structure) including the sitecore generated ones.

This will enable us to use any third party log analyzer such as sumo logic.

I had a look at this Sitecore Logging (Log4Net) Log to Database as Well as Text Files which is specific to SQL Database.

Would be good if you could share the solutions that's been implemented in production as there were performance issues with storing logs on to blog storage a while ago (2 years).

  • Are you asking, how to set up Sitecore logging with JSON or are you asking how to solve performance issues involved in logging to Azure Blog Storage? If both, please split into 2 different questions. – Mark Cassidy Nov 24 '16 at 23:19
3

You can try using the following project with your Sitecore solution. https://github.com/olegburov/Sitecore-Azure-Diagnostics/

It adds a custom logger to log4net, which writes Sitecore's diagnostic data into Azure Blob Storage using Append Blob.

Another option is to upgrade to the latest and greatest Sitecore XP 8.2 Update-1, where a new logger powered by Azure Application Insights comes out of the box.

  • But but but 8.2 Update 1 is not released yet! It's good to know what's coming in it though ;-) – Dmytro Shevchenko Nov 26 '16 at 21:19
  • It's coming and you will see all details very soon. – Oleg Burov Nov 28 '16 at 22:48
  • still no sign of update 1 @OlegBurov – Nil Pun Nov 30 '16 at 2:08
  • @nil-pun It's now available at: dev.sitecore.net/Downloads/Sitecore_Experience_Platform/82/… – Oleg Burov Dec 5 '16 at 18:21
  • @OlegBurov, excellent. Are you able to confirm whether update 1 has a azure blob appender for storing files on to blob. Our requirement is to store all the logs files on to Azure Blog storage so that Sumo logic can extract. – Nil Pun Dec 6 '16 at 3:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.