Compute@Edge log streaming: Logentries

Fastly's Real-Time Log Streaming feature for Compute@Edge services can send log files to Logentries. Logentries is a real-time log management and analytics system that you can use to monitor your Fastly logs.

Adding Logentries as a logging endpoint

If you already have a Logentries account, or if you sign up for a Logentries account on the Logentries website, you can add Logentries as a logging endpoint in the Fastly web interface.

Prerequisites

  1. Register for a Logentries account.
  2. Create a new log in the Logentries application by following the instructions on the Logentries website.
  3. During new log creation, select Manual Configuration and Token TCP.
  4. Make a note of the token provided in the Logentries configuration panel. We recommend you use this token when you create the Logentries logging endpoint for Fastly services.

Creating the logging endpoint in the web interface

After you've created a new log in Logentries and found the token, follow these instructions to add Logentries as a logging endpoint for Fastly Compute@Edge services:

  1. Review the information in our Setting Up Remote Log Streaming guide.

  2. Click the Logentries by Rapid7 Create endpoint button. The Create a Logentries endpoint page appears.
  3. Fill out the Create a Logentries endpoint fields as follows:
    • In the Name field, enter the name you specified in your Compute@Edge code. For example, in our Rust code example, the name is my_endpoint_name.
    • In the Token field, enter the token provided in the Logentries configuration panel.
    • From the Region menu, select the region to stream logs to. For older Logentries accounts, where the log view URL starts with https://logentries.com/, select EU. For InsightOps accounts, select the region based on which data storage region you chose on signup for your Rapid7 account. For example, if your log view URL is https://us2.ops.insight.rapid7.com/, then your selected region would be US-2.
  4. Click the Advanced options link of the Create a Logentries endpoint page and decide which of the optional fields to change, if any.
  5. Fill out the Advanced options of the Create a Logentries endpoint page as follows:
    • From the TLS menu, optionally select Yes.
  6. Click the Create button to create the new logging endpoint.
  7. Click the Activate button to deploy your configuration changes.

Next steps

Logentries maintains the Fastly Community Pack that leverages custom VCL to provide advanced User-Agent statistics, regional statistics, error tracking, and more.

Back to Top