View Site Logs using an external logging tool

You can view your site logs using an external monitoring tool of your choice.

This is the general lifecycle of site logs when connected to an external monitoring tool:

Wix logs lifecycle
  1. Your site generates implicit and explicit logs in JSON format and sends them to the endpoint you provided.
  2. The endpoint converts the JSON objects into a format that the external monitoring tool can parse.
  3. The converted JSON objects are sent to the monitoring tool for analysis.

Step 1: Create an endpoint

You can create an endpoint by implementing your own or by using one provided by an external monitoring tool.

Important:

  • Your site sends logs in the form of JSON objects. Make sure to configure the endpoint to handle JSON objects so that the external monitoring tool can parse them correctly.
  • Your endpoint must be configured to accept the POST request method.

Use an endpoint by an existing monitoring service

You can use an endpoint provided by an existing monitoring service, such as logz.io or Loggly.

Refer to the service's documentation to learn how to create an endpoint.

Implement your own endpoint

Alternatively, you can implement your own endpoint and integrate it with a monitoring tool of your choice.

Note: You can create an endpoint for site logs on a Wix site using the HTTP functions API, but you can't do so on the same site whose logs you want to view.

Your endpoint must include code to convert site log objects into a format that can be parsed by the external monitoring tool.

For your convenience, Wix offers an open-source example using Solarwinds Loggly on Google App Engine. The code is specific to this tool, but you can adapt it for the monitoring tool of your choice.

Step 2: Set your endpoint

Once you have an endpoint, set it in your site dashboard:

  1. In your site dashboard, click Developer Tools > Logging Tools.

  2. In the Connect an external logging tool section, click Next. The Connect external logging tool page appears.

  3. In the Enter your endpoint URL field, enter your endpoint URL and click Connect.

Your site is now connected to the external monitoring tool.

See also

Did this help?