LOG IN SIGN UP
Documentation

Log streaming: Loggly

Fastly's Real-Time Log Streaming feature can send log files to Loggly. Loggly is an agent-less log collection and management tool.

Prerequisites

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

You should also have your Fastly API key and the service ID and version number of the Fastly service for which you'll be enabling Loggly logging.

Adding Loggly as a logging endpoint

To use Loggly as a logging endpoint follow the steps below:

  1. Navigate to the Customer Tokens area in the Source Setup on your Loggly dashboard.

    Customer Tokens area in the Source Setup of the loggly dashboard

  2. Make note of your Loggly customer token. Loggly uses this to associate data you send them with your account.

  3. Run the following cURL command:

    curl -s -X POST -H 'Fastly-Key: <your Fastly API key>' -H 'Content-Type: application/json' 'https://api.fastly.com/service/<your Fastly service ID>/version/<version number>/logging/loggly' --data-binary '{"name":"<log name>", "format":"%h %l %u %t %r %>s","token":"<your Loggly token>"}'
    

Additional resources:


Back to Top