Compute@Edge log streaming: Scalyr

Fastly's Real-Time Log Streaming feature for Compute@Edge services can send log files to Scalyr. Scalyr pulls all your server logs and metrics into a centralized, searchable system in real time.

NOTE

Fastly does not provide direct support for third-party services. Read Fastly's Terms of Service for more information.

Prerequisites

If you don't already have a Scalyr account, you'll need to register for one. Follow the signup instructions on the Scalyr website.

Once you've signed up, navigate to the API Keys area in the Settings on your Scalyr dashboard and make note of your Scalyr Write Token. Scalyr uses this to associate data you send them with your account. You'll need this token when you set up your endpoint with Fastly.

If you're adding the Scalyr endpoint via the command line, instead of the web interface, you should also have your Fastly API token and the service ID and version number of the Fastly service for which you'll be enabling Scalyr logging.

Adding Scalyr as a logging endpoint

Follow these instructions to add Scalyr as a logging endpoint:

  1. Review the information in our guide to setting up remote log streaming for Compute@Edge. Additionally, our developer documentation provides more information about logging with Compute@Edge code written in Rust, AssemblyScript, and JavaScript.
  2. Click the Scalyr Create endpoint button. The Create a Scalyr endpoint page appears.
  3. Fill out the Create a Scalyr endpoint fields as follows:
    • In the Name field, enter the endpoint name you specified in your Compute@Edge code. For example, in our Rust code example, the name is my_endpoint_name.
    • In the Logfile field, optionally specify the log file name under which your logs will appear on Scalyr's Overview page. Defaults to logplex.
    • In the Token field, enter the Scalyr Write Token provided in the Scalyr dashboard.
    • From the Region menu, select the region to stream logs to.
  4. Click the Create button to create the new logging endpoint.
  5. Click the Activate button to deploy your configuration changes.
Was this guide helpful?

Do not use this form to send sensitive information. If you need assistance, contact support.