How can we help?

Search for answers or browse our knowledge base.

Table of Contents

How To Filter The Activity Log Events In A Mirroring Connection

With the WP Activity Log plugin you can mirror the WordPress activity log to third party services such as Slack, AWS CloudWatch, Loggly, Syslog and even to a log file. If you do not want to mirror all the events from the activity log, you can configure the filters per mirroring connection. This article explains how you can setup these activity log filters.

The WordPress activity log filtering settings

All the WordPress activity log filtering settings for mirroring connections are available during the last step of the wizard, as shown in the below screenshot. You can also configure these filters by clicking the Edit button next to the mirroring connection in question, after it has already been configured.

Mirror all events

Send all events

To send all the events to the activity log mirror simply select the Send all events checkbox. If you want to setup filtering, you have the following two options:

Mirror only specific activity log events

Send only these events

If you have a list of activity log events you’d like to save in the mirror:

  1. Check the option Only send events with these IDs.
  2. Specify the IDs of the activity log events you’d like the plugin to mirror when they happen.

Refer to the complete list of activity log events and their IDs for more information.

Mirror all activity log events but not some specific ones

Send all events but these

If on the other hand you’d like the plugin to mirror all the activity log events but not a few specific ones when they happen:

  1. Check the option Send all events BUT not those with these codes.
  2. Specify the IDs of the activity log events you do not want to be mirrored.

Mirror activity logs by severity level

Send events matching severity level

Once you have made your Event ID filter selection, you can also place a secondary filter to filter out events according to their severity level. The severity level filter works together with the Event ID filter, giving you a finer degree of control over what gets mirrored and what does not.

By default, all severity levels are mirrored. To stop a log that is of a particular severity level from being mirrored, simply click the X icon on the left of the severity level label to remove it. You can re-add any removed severity level by typing its name with the help of auto-complete.

Severity levels are as follows:

  • Critical
  • High
  • Medium
  • Low
  • Info

Refer to the complete list of activity log events and their IDs for more information.

Configuring the mirroring of the activity log

For more information on how to setup mirroring refer to the following guides:

For more information on mirroring the WordPress activity log and all the documentation details refer to the Activity log mirroring technical documentation. For other integrations, storing the activity log in the external database and archiving refer to the getting started with WordPress activity log integrations.