How can we help?

Search for answers or browse our knowledge base.

Table of Contents

How to mirror the WordPress activity log to a syslog server or file

Syslog is a messaging standard. It is used as a logging mechanism and also to centralize the logs of a number of computers, servers, services, and other devices to a central location.

If you use Syslog to centralize all the logs of your business, you can use the WP Activity Log plugin to mirror the WordPress activity log to the web server’s local syslog, or to a remote Syslog server. The WordPress activity log is mirrored in real-time, so you can see what is happening on your site in real-time, directly from syslog and without the need to log in to each individual website.

This document explains how you can mirror the activity log of your websites to Syslog. The process consists of two steps:

  1. Setting up a Syslog connection in the plugin
  2. Configuring the mirroring of the activity logs to Syslog

1. Setting up a syslog connection

To setup a syslog connection in the plugin:

  1. Click on the Integrations node in the plugin menu.
  2. Click the Create a Connection button to launch the connection setup wizard.
  3. Select Syslog from the Type of Connection drop-down menu in the first step of the wizard and click Next.
  4. When the plugin completes the requirements test, click Next.
Syslog configuration options
  1. In the second step of the wizard, specify if you want to mirror the activity logs to:
    • The web server’s Syslog by selecting Write to local syslog file
    • A remote Syslog server by selecting Send messages to remote syslog server
  • If you select to send the messages to a remote Syslog server, first choose whether you want to connect over TCP or UDP by checking the appropriate checkbox. Next, enter the IP address and port of the remote Syslog server in the respective placeholders. Check the Enable to use SSL/TLS to connect checkbox.
  1. Click Next to run a connectivity test, and click Next again once the test is successful.
  2. In the last step of the wizard, specify a name for the connection. Connection names are just a reference for you and can be up to 25 characters long and can only consist of letters, numbers, and underscores.

Testing the Syslog connection

Once the connection is set up it will be listed in the Connections tab. Click the Send a test message button to send a test message to the Syslog server via the plugin and confirm the configuration.

Syslog test message

Configuring the mirroring to Syslog

Once the Syslog connection is set up, you have to configure the plugin to mirror the logs to the newly configured connection by following the below instructions:

  1. Click on Integrations in the plugin menu.
  2. Navigate to the Mirroring tab and click the Setup an Activity Log Mirror button.
Configuring the mirroring to Syslog
  1. In the first step of the wizard, specify the following:
    • Friendly name for the mirror.
    • Mirror identifier in logs (this will be added to each event, so you know the source of the activity log event).
    • Select the Syslog connection you’ve just set up from the Connection drop-down menu.
  2. In the second step of the wizard, specify if you want the mirroring to start right away.
Activity log filters for mirroring connections
  1. In the last step of the wizard, you can configure activity log filtering rules for the mirroring connection. By default, the connection is set to Send all events option, though if you’d like to set up any filtering rules, refer to configuring filtering rules for activity log mirroring connections.
  2. Click Save Mirror to save the new mirroring process.

WordPress activity log in your Syslog

That is it. Now the plugin will send a copy of the activity log events to your syslog file or Syslog server as they happen, in real-time!

WordPress activity log in your Syslog

Restrict log writing to mirror only

Once the mirroring setup process is complete, and WP Activity Log has successfully started writing to Syslog, you will have the option to stop writing activity logs to the database. While this will help you prevent redundant data, do keep in mind that the plugin will only write activity logs to the configured mirror(s).

To stop writing activity logs to the database, switch off the Write activity log to database option as available in the Mirroring tab.

Write activity log to database

More information & other integrations

Refer to getting started with mirroring the WordPress activity log for more information on the format of the logs, the third-party services the plugin can mirror activity logs to, and other technical details.

Uploading WP 2FA as a zip file in WordPress
WP 2FA in the WordPress plugin repository
Close

Installing WP 2FA Free

Congratulations on taking the first step towards enhancing your WordPress site's security with WP 2FA Free! You're now on your way to protecting your valuable data and ensuring peace of mind. No coding or technical knowledge is required.

 

Below are two ways to install WP 2FA on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for WP 2FA.

Download the WP 2FA plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading CAPTCHA 4WP as a zip file in WordPress
CAPTCHA 4WP in the WordPress plugin repository
Close

Installing CAPTCHA 4WP Free

Well done you. You're one step closer to safeguarding your WordPress website from spam and automated attacks with CAPTCHA 4WP. You'll be able to effortlessly integrate CAPTCHA into your forms and enjoy a website with enhanced security.

 

Below are two ways to install CAPTCHA 4WP on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for CAPTCHA 4WP.

Download the CAPTCHA 4WP plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading WP Activity Log as a zip file in WordPress
WP Activity Log in the WordPress plugin repository
Close

Installing WP Activity Log Free on your website

You deserve a pat on the back for choosing to record user actions and changes on your website. That is the first step towards better user accountability, easier troubleshooting of website security, and many other benefits of issues.

 

Below are the two ways to install WP Activity Log on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for WP Activity Log.

Download the WP Activity Log plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading Melapress Login Security as a zip file in WordPress
Melapress Login Security in the WordPress plugin repository
Close

Installing Melapress Login Security Free

Congratulations on taking control of your WordPress website's security by implementing robust login and password policies with Melapress Login Security. You can change your login page URL, limit failed login attempts, and reset passwords.

 

Below are two ways to install Melapress Login Security on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for Melapress Login Security.

Download the Melapress Login Security plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2