Stream logs to Loggly

DataStream 2 supports sending log files to Loggly for improved data monitoring and analysis.

The custom header feature allows you to optionally choose the content type passed in the log file, and enter the name and value for the header that you want to use in Loggly to store various data types. See the HTTP/S Bulk Endpoint documentation in Loggly for details.

Before you begin

Before configuring your stream to send logs to this destination, make sure you create and store the Loggly customer token you need for authentication. See Customer token in Loggly.

How to

  1. In Display name, enter a human-readable name description for the destination.

  2. In Endpoint, enter a Loggly bulk endpoint URL you want to send your logs to. The endpoint URL should follow the https://<loggly.com>/bulk/ format, and you should pass the secret authentication token in the field below. See the HTTP/S Bulk Endpoint documentation in Loggly for details.

  3. In Auth token, enter the customer token associated with your Loggly account. The token is the value from your Loggly bulk endpoint URL that comes after the /bulk segment, and before tags.

  4. Click Validate & Save to validate the connection to the destination and save the details you provided.

📘

Keep account details safe

The full Loggly endpoint URL can contain the authentication token, but you should enter it separately in the Auth token field to protect your Loggly account details.

Additional options

  1. Optionally, go to Custom header and provide the details of the custom header for the log file:

    • In Content type, set the content type to pass in the log file header. application/json is the only supported content type at this time.
    • If your destination accepts only requests with certain headers, enter the Custom header name and Custom header value. The custom header name can contain the alphanumeric, dash, and underscore characters.
  2. Optionally, change the Push frequency to receive bundled logs to your destination every 30 or 60 seconds.

  3. Click Validate & Save to validate the connection to the destination and save the details you provided.


Did this page help you?