Home Blog WordPress Management How to configure Loggly mirroring for WordPress activity logs

How to configure Loggly mirroring for WordPress activity logs

How to configure Loggly mirroring for WordPress activity logs

WP Activity Log comes jam-packed with many great features, including mirroring logs to a Log Management System. Log Management Systems benefit owners and administrators managing multiple WordPress websites and complex environments. Benefits include centralization of logs, ease of access, and added security, to name a few.

To start enjoying the many benefits of WP Activity Log and Loggly working together, you need to configure a few things. More precisely, you will need to:

  1. Set up a Loggly account (if you don’t have one already)
  2. Configure a Loggly connection in your WP Activity Log plugin
  3. Mirror the log from your WordPress website to your Loggly account

This how-to provides step-by-step instructions for the entire process from start to finish. Each section has been clearly labeled, allowing you to skip ahead should you, for example, already have a Loggly account.

One important thing to note here is that Loggly offers new customers a free trial account. This is the account that we will set up in this how-to. Of course, you can always upgrade to a full paid account at any point during the trial should you wish.

Let’s get started.

Sign-up for a Loggly account

Loggly comes with a free trial, so if you have never used a Log Management System before, this can help you assess the benefits of using Loggly with no risk. In this section, we will be setting up a Loggly account, which we will then use to mirror our WP Activity Log log to.

Step 1: Go to Loggly’s website and click on Free Trial

Go to Loggly’s website and click on FREE TRIAL, located as shown in the screenshot below.

Loggly Trial

Step 2: Create your free Loggly account

In the second step of the process, we will be creating our free Loggly account. There is no need to supply your credit card details, and the trial period runs for 30 days. Here, you will need to enter the following information:

  • Your first name
  • Your last name
  • Your work email address
  • Your country of residence

Once done, read and agree to the terms and agreements and click on Create Account.

Step 3: Customize your account

In the third step of this process, we will be customizing our account. We need to enter the following information:

  • Account name (this will be the URL through which you’ll access your account)
  • Username
  • Password
  • Phone number
  • Company or Organization name

Once done, click on Start Using Loggly.

Step 4: Confirm your email address and sign-in

You should receive an activation email in your inbox on the same email address used during the registration process. Make sure you check your spam folder, should you not find it. Click on the Verify your email button to confirm your email address and log in to your Loggly account.

Step 5: Retrieve your Loggly customer token

Once you’ve logged in, you will need to retrieve your Loggly customer token. We will use this token during the plugin configuration, so make sure you store it somewhere safe for the time being.

  • Click on the Logs icon from the side menu and then on Source Setup
  • Click on the Customer Tokens tab
  • Copy the Customer Token

Set up the Loggly connection in WP Activity Log

Now that we have set up our Loggly account, we need to connect to it from our WordPress. This opens a line of communication between our WordPress and our Loggly account, through which we will be able to mirror our logs.

Step 1: Create a Connection

To create a Loggly connection, first head to your WordPress website. Once logged in, click on WP Activity Log and then Integrations from the side menu. Make sure you’re on the Connection tab and then click on Create a Connection. This will start the Connections Wizard, which will help us set up and configure the connection.

Step 2: Select type of connection

In the first step of the Connections Wizard, we need to select the type of connection that we want to set up. WP Activity Log is compatible with Loggly straight out of the box. All we need to do here is choose Loggly from the Type of Connection drop-down menu.

Step 3: Ensure system meets requirements

Next, WP Activity Log will ensure that all requirements are met before proceeding to the next step. No input is required. Click Next once you receive confirmation that all requirements have been met.

Step 4: Input Loggly customer token

In the next step of the Connections Wizard, we need to enter our Loggly customer token, which we retrieved earlier. Copy and paste the code in the Loggly token field and then click on Next.

Step 5: Test Connection

The wizard will now test the connection to make sure that it can safely connect to Loggly. No input is required from your end as the wizard will take care of everything. Once ready, click on Next to continue.

Step 6: Name the connection

In the last step, we need to give the connection a friendly name so that we can easily recognize it when setting up the mirror. We will be doing this next. You can name the connection whatever you want; however, naming it something recognizable such as MyLogglyConnection, as shown in the below example, will help you find it that much quicker. Once done, click on Save Connection and move to the next section.

Set up the activity log mirroring

Now that we have set up our Loggly account and the connection, it is time to set up the mirror. The mirror will use the connection we set up in the previous step to send our log data to the Loggly account we set up in the first step. This is the last part of the process, by the end of which your logs will start safely being mirrored to Loggly.

Step 1: Set up an Activity Log Mirror

To kick off the process, first click on WP Activity Log and then Integrations from the side menu. Make sure you’re on the Mirroring tab and then click on Set up an Activity Log Mirror.

Step 2: Select the mirroring connection

You should now have the Mirroring Wizard open directly in front of you. This wizard will help us configure the mirror in no time at all.

In the first screen, we will start configuring the mirror by choosing the connection and naming it.

  • Mirror connection friendly name: Enter a name for the mirror connection. This will help you recognize this specific mirror connection should you need to set up more than one.
  • Mirror identifier in logs: Enter a name to identify this mirror in your Loggly log. This will help you recognize your logs in Loggly as coming from this mirror
  • Connection: Choose the connection that we set up in the previous section

Click Next once done.

Step 3: Configure start of activity log mirroring

Next, we can choose whether we would like the wizard to initiate mirroring once the setup is complete automatically. Tick the Tick this checkbox to enable the mirror and start sending data once set up checkbox to enable.

Click Next to continue.

Configure mirroring events

In this last section, we can choose which events we want to be mirrored to Loggly. By default, all events are mirrored, but you can exclude certain events through the following filters:

Event IDs

Here you can choose to either send all events, send only certain events, or exclude certain events from being sent. Click here for the full list of WP Activity Log events.

Severity

Here you can exclude certain events from being mirrored to Loggly according to their severity. To exclude an event by its severity, simply click on the x located on the left side of the severity button.

Click Save Mirror once done to complete the configuration process and save your settings.

Configure a local copy of the activity log

The last option that we need to configure is whether we would like to retain a copy of the activity log on the WordPress database.

By default, WP Activity Log writes to the database and the mirror. To stop writing to the database, simply untick the Write activity log to the database option.

Your Loggly mirroring configuration is now complete. Head over to your Loggly account to view the logs coming in.

The Ultimate Guide to WordPress Oversight eBook
Posted inWordPress Management
Glenn Kouma
Glenn Kouma

Glenn has a huge passion for WordPress, has been using it for over 5 years, and even develops a couple of premium themes. Glenn enjoys blogging, music, and the outdoors. You can reach Glenn at glenn@melapress.com.


Leave a Reply

Your email address will not be published. Required fields are marked *

Stay in the loop

Subscribe to the Melapress newsletter and receive curated WordPress management and security tips and content.

Newsletter icon

It’s free and you can unsubscribe whenever you want. Check our blog for a taste.

Envelope icon
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