Search Knowledge Base by Keyword
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:
- Setting up a Syslog connection in the plugin
- Configuring the mirroring of the activity logs to Syslog
1. Setting up a syslog connection
To setup a syslog connection in the plugin:
- Click on the Integrations node in the plugin menu.
- Click the Create a Connection button to launch the connection setup wizard.
- Select Syslog from the Type of Connection drop down menu in the first step of the wizard and click Next.
- When the plugin completes the requirements test, click Next.
- 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,
- or a remote syslog server by selecting Send messages to remote syslog server. If you select to send the messages to a remote syslog server, specify the IP address and port of the remote syslog server in the respective placeholders.
- Click Next to run a connectivity test and click Next again once the test is successful.
- 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 setup 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.
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:
- Click on Integrations in the plugin menu.
- Navigate to the Mirroring tab and click the Setup an Activity Log Mirror button.
- 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 even, so you know the source of the activity log event).
- Select the Syslog connection you’ve just setup from the Connection drop down menu.
- In the second step of the wizard specify if you want the mirroring to start right away.
- 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 setup any filtering rules refer to configuring filtering rules for activity log mirroring connections.
- 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!
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.