JeffDarchuk / SitecoreSidekick

Framework for angularjs based microservice architecture operations.
MIT License
48 stars 33 forks source link

Refactor Lucene Audit Logger and implement SQL Audit Logger #83

Closed markgibbons25 closed 3 years ago

markgibbons25 commented 3 years ago

@JeffDarchuk mostly working, still a few bits and pieces left to do / cleanup

markgibbons25 commented 3 years ago

Implements #71

markgibbons25 commented 3 years ago

Still TODO: update readme, but will wait on feedback first.

JeffDarchuk commented 3 years ago

I'm on vacation currently without my computer. I'll be able to check it out Monday. Sounds promising though

JeffDarchuk commented 3 years ago

is this removing the lucene functionality entirely or just adding an option to use an SQL database for storage? Also, is the database expected to be manually created?

markgibbons25 commented 3 years ago

is this removing the lucene functionality entirely or just adding an option to use an SQL database for storage?

Just an option, it still defaults to lucene

Also, is the database expected to be manually created?

Yes - dacpac is included although I am not sure how you want to include that in the nuget package. I think I can figure it out though with something similar to how Dianoga includes the 3rd party libs. Also - readme update is done.

JeffDarchuk commented 3 years ago

ah, sounds good, since it requires manual database creation, we could probably just store it in the repo and point people to it via the readme.md and in the configuration files to enable the SQL method. It's too bad we can't just store this information in an already existing Sitecore database somehow

markgibbons25 commented 3 years ago

It can use an already existing database, but I'd never recommend people add tables to system databases for a few reasons:

I'll update the config and readme as you suggest with a link to the dacpac.

JeffDarchuk commented 3 years ago

oh yeah, couldn't agree more. I was thinking more along the lines of jam it in an existing table somewhere that would make sense, and definitely wishful thinking.

markgibbons25 commented 3 years ago

I've been using this in a large prod environment for the last 10 days, thousands of events logged, performance is all good, no issues. Had some good feedback on how useful it is already. One thing that would be nice is to track "system" events a bit better, they come through as anonymous, things like TDS / unicorn sync, scheduled jobs.

JeffDarchuk commented 3 years ago

great, that's good enough for me, nice work on this! I'll cut a new release tomorrow morning

JeffDarchuk commented 3 years ago

alpha3 includes this change. My plan for an official 1.6.0 release is to test it myself thoroughly with my current client, this will likely be about a month from now that i can get the testing done.