We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.
Getting started
Basics
Domains & Origins
Performance

Configuration
Basics
Conditions
Dictionaries
Domains & Origins
Request settings
Cache settings
Headers
Responses
Performance
Custom VCL
Image optimization
Video

Security
Access Control Lists
Monitoring and testing
Securing communications
TLS
Web Application Firewall

Integrations
Logging endpoints
Non-Fastly services

Diagnostics
Streaming logs
Debugging techniques
Common errors

Account info
Account management
Billing
User access and control

Reference

    Log streaming: Loggly

      Last updated June 03, 2019

    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.

    Follow the steps below to find your Loggly customer token:

    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.

    Adding Loggly as a logging endpoint

    After you've created a Loggly account and obtained your customer token, follow these instructions to add Loggly as a logging endpoint for Fastly services:

    1. Review the information in our Setting Up Remote Log Streaming guide.
    2. Click the Loggly logo. The Create a Loggly endpoint page appears.

      the create a Loggly endpoint page

    3. Fill out the Create a Loggly endpoint fields as follows:
      • In the Name field, type a human-readable name for the endpoint.
      • In the Log format field, optionally type an Apache-style string or VCL variables to use for log formatting. The Apache Common Log format string appears in this field by default. Our discussion of format strings provides more information.
      • In the Token field, type your Loggly customer token.
    4. Click the Advanced options link of the Create a Loggly endpoint page. The Advanced options appear.

      the advanced options on the create a new Loggly endpoint page

    5. In the Placement area, select where the logging call should be placed in the generated VCL. Valid values are Format Version Default, None, and waf_debug (waf_debug_log). Selecting None creates a logging object that can only be used in custom VCL. See our guide on WAF logging for more information about waf_debug_log.
    6. Click the Create button to create the new logging endpoint.
    7. Click the Activate button to deploy your configuration changes.
    Back to Top