Try our conversational search powered by Generative AI!

Turn off Activity log

Vote:
 

The Activity log (previuosly named 'Change log') can be disabled according to the following documentation:

https://world.episerver.com/documentation/developer-guides/CMS/logging/activity-logging/

I have added appsetting:

 

 but still the activity log is not turned off.

Is this a bug or am I missing something?

I am running Episerver CMS 10.10.4 and Commerce 11.2.4

#185169
Edited, Nov 10, 2017 8:18
Vote:
 

So what that setting does is disabling archiving, not the activity log itself.

#185364
Nov 16, 2017 14:25
Vote:
 

I don't think there is an official, supported way to disable activity log. 

I also think there is an unofficial, unsupported way to do that, but Per probably recommends against that :)

#185366
Nov 16, 2017 14:45
Vote:
 

Ah, I see. 

We are running a huge catalog import, and during the import the log is filled with errors like these:

2017-11-09 14:37:54,499 [56] ERROR lambda_method: One or more errors occurred.
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The event manager has been stopped.
   at EPiServer.Events.ChangeNotification.Implementation.ManagedChangeProcessor`1.ConsumeNotifyChangeResults(IEnumerable`1 items)
   at EPiServer.Events.ChangeNotification.Implementation.ChangeRouter.NotifyChanges(IEnumerable`1 changes)
   at EPiServer.Events.ChangeNotification.Implementation.ChangeNotificationManager.NotifyChanges[TChangedData](IEnumerable`1 changes)

Pretty much the same issue as this old unresolved post from 2015: https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2015/10/quotthe-event-manager-has-been-stopped.quot-duering-scheduled-job/

My initial thought was that to try to turn off activity logging, to see if that helped. But this error is maybe related to the general Events manager (like cahe notification)? 

Still, at the moment I have 694 869 rows in tblActivityLog - which I really don't need. So, Per is there an unsupported way? :)

#185367
Nov 16, 2017 14:55
Vote:
 

I can be wrong here, but the ChangeNotificationManager should have nothing to do with ActivityLog. At least for Commerce, the changenotification is a persistent queue for catalog changes.

We can look into that and it would be possible to introduce an option to opt out from ChangeNotificationManager (For Catalog). 

#185368
Nov 16, 2017 15:02
Vote:
 

There is a scheduled job that cleans that up eventually, features like projects will stop working so that is why we don't provide any way to disable it.

ChangeNotification is another system used by Commerce for indexing I think.

#185369
Nov 16, 2017 15:03
Vote:
 

@Quan, I found this post where you are explaining ChangeNotification: http://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2014/12/what-is-changenotification-used-for/

So I understand what it is, but it seems to cause issues when running huge imports (processing 100 000 products). 

#185382
Nov 17, 2017 9:23
Vote:
 

I would suspect it's something else, because we have customers imported even bigger catalogs and things have been fine.

But as I said, we will look into the option to opt out the ChangeNotification, if you don't want to use the eventual indexing.

#185384
Nov 17, 2017 9:46
Vote:
 

We have made quite an effort in terms of performance and parallel processing of updates - right now the import can update 10 000 in 15 minutes. (We are using Azure Storage Queues, I am working on a blog post regarding the topic).

Could the parallell processing cause issues in terms of ChangeNotification?

#185385
Nov 17, 2017 10:02
Vote:
 

Can be, I'm not sure but I think we avoid doing that because of "reasons".

It's really apple and orange but 10k products in 15 minutes seems to be low to me. I would expect 50k in a normal CatalogImportExport setup 

#185387
Nov 17, 2017 10:55
Vote:
 

What about intercepting IChangeNotificationManager and just do an early exit in NotifyChanges, maybe conditionally if the changes are of type IBulkChangeItem<CatalogEntryChange> (to preserve functionality for other uses than commerce)?

That wouldn't remove the overhead of creating the IBulkChangeItem<CatalogEntryChange> instances in memory, but it would remove the overhead of actually storing them to the database.

#185389
Nov 17, 2017 11:08
Vote:
 

@Quan: 50 000 items in 15 minutes items through the Episerver api? With real data?

@Magnus: Thanks, I will look into it. 

#185390
Nov 17, 2017 12:23
Vote:
 

Yes, catalog.xml via CatalogImportExport, real data, on my averagely powerful desktop :) 

#185391
Nov 17, 2017 12:26
Vote:
 

The ability to opt out from the eventual indexing queue (aka the ChangeNotification) will be available in an upcoming version of Commerce. Probably 11.6 or 11.5.2. 

#186013
Dec 08, 2017 16:25
Vote:
 

For the record, here's how to disable it:

https://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=COM-5861

#197044
Sep 20, 2018 4:16
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.