One-click Logentries account setup

Fastly has partnered with Logentries to offer you a method for automatically creating a Logentries account and configuring a logging endpoint. By using the Logentries one-click integration, you can create a 30 day trial Logentries account with unlimited data. After 30 days, if you don't upgrade to one of the Logentries premium plans, your account will be capped at 5GB per month.

Follow these instructions to create a Logentries logging endpoint and configure the logging endpoint:

Log in to the Fastly web interface and click the Configure link.

From the service menu, select the appropriate service.

Click the Configuration button and then select Clone active. The Domains page appears.

Click the Logging link. The Logging endpoints page appears. If you have an existing logging endpoint, click the Create endpoint button.

Manually adding Logentries as a logging endpoint

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

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 also provides more information.

In the Token field, type the token provided in the Logentries configuration panel. Though you can use the provided secret port number, there are additional options to consider when deciding on token settings.

Click the Advanced options link.

Fill out the Advanced options as follows:

In the Port field, type 20000. Though we recommend this specific setting when adding your endpoint, there are additional options to consider when deciding on the port and TLS settings.

From the TLS menu, optionally select Yes.

Click the Create button to create the new logging endpoint.

Click the Activate button to deploy your configuration changes.

Additional selections for tokens, ports, and TLS

Using your token. You can add a Logentries endpoint by using your secret account token. To use your token, set your port to 10000. However, we strongly recommend sending your logs via TLS. To do this, set TLS to Yes and the port number to 20000. See the Logentries guide Token TCP for more information.

Using your port number. You can add a Logentries endpoint by using your secret Logentries port number (e.g., 56789). However, we strongly recommend sending your logs via TLS. To do this, set TLS to Yes and add 10000 to your secret port number (e.g., 66789). See the Logentries guide Plain TCP/UDP for more information.