How to stop activity logs functionality

Hello, is there a way to stop entirely the functionality of activity logging?

I like the “report” part of the Child Reports plugin, but I dont need the activity log (stream) and I don’t want it to burden my database with write operations. Is there a way to stop only this feature without uninstalling the whole plugin?

Thank you

Hey @dichagr

The logging made by the Child Reports plugin that ends up in the reports is different from the Network Activity (activity log) logging.

Network Activity can be disabled completely, the retention period can be shortened, or you can just disable specific events you don’t want to log: Network Activity - MainWP Documentation

And you can find more info about the Child Site’s database table sizes, both for Child Reports and Network Activity, in this doc: Which MainWP database tables usually take the most space? - MainWP Documentation

Thanks for your reply. Btw I’m not using the Activity log by Melapress (your linked resource), but your own native logger.

So if i understand correctly:

  1. From the MainWP Dashboard (not inside each child site settings), I can disable entirely the logging feature in all child sites at once, by turning off the setting "Enable insights logging"?
  2. If I disable the activity logging entirely, there will be no missing data from my reports,right? For example, plugin updates will still be present in client reports, even if I stop logging the Plugins>Updated activity context. Am i right? Is this what you mean that “reports is different from the Network Activity”?
  3. If I want to disable logging per site (not globally), should I use the filter wp_mainwp_stream_is_record_excluded? It is not very convenient to add exclusion rules for everything, too many rules… Is this the right approach to turn it off for a specific child site?

Thank you Bojan, any clarification possible will be appreciated.

Hey @dichagr

Understood and I was talking about built-in Network Activity. I put Activity Log in brackets because you referred to it as such, but our forum automatically added a link to Melapress’ Activity Log.

Correct. After you do, sync the Dashboard.

Correct. These are separate logs collected by the MainWP Child Reports plugin.
An explanation of which DB tables are used for each is available here: Which MainWP database tables usually take the most space? - MainWP Documentation

Currently, Network Activity can only be controlled globally (on this page wp-admin/admin.php?page=SettingsInsights) and not per child.