The Velo logs feature allows you to connect Wix Logs to an external monitoring tool. This article explains how to connect your Wix Logs to a monitoring tool of your choice.
Notes
To connect your external monitoring tool, you need to provide Wix with an HTTP endpoint URL. There are 2 ways to create an HTTP endpoint:
Once the HTTP endpoint is set, Velo sends logs in the form of JSON objects to the endpoint. The endpoint must include code for adapting the JSON objects so that your external monitoring tool can parse them.
To understand your part in the connection process, it's helpful to first learn the general lifecycle of Wix Logs that are connected to an external monitoring tool:
You can set up website monitoring by either using an existing monitoring tool or by implementing your own HTTP endpoint.
You can use external monitoring tools to create an endpoint, such as logz.io or Loggly.
Example with logz.io:
Read the instructions at the bottom of the page and then copy the relevant endpoint, as circled in red.
You can implement your own HTTP endpoint and adapter code to parse logs and integrate them with a monitoring tool of your choice.
Notes:
Before implementing your endpoint, familiarize yourself with the JSON representation of Wix Logs. Each log is recorded as a single log entry in JSON format. You can see a detailed description of log entries here.
Next you need to create adapter code to convert the JSON objects into a format that can be parsed by your external monitoring tool. You also need code that sends the JSON objects to the tool.
For your convenience, we created 2 open-source examples of adapter code that you can revise to implement your own HTTP endpoint:
The code is specific to the examples, but you can adapt it for the monitoring tool of your choice.
Once you've implemented your HTTP endpoint, you can connect Wix Logs to your monitoring tool by setting the endpoint in your site:
Once your endpoint is connected, Velo starts sending logs to your monitoring tool.