Fluentd Logs

You can send your logs from the open source log collector Fluentd to Loggly. It has a variety of filters and parsers that allow you to pre-process logs locally before sending them to Loggly. For alternatives, please see the Advanced Options section.

Fluentd Logs

Fluentd Logs Setup

  1. Install Fluentd
  2. If you haven’t already, download fluentd and then install it.

  3. Install Loggly Gem
  4. Install the fluent-plugin-loggly gem from Ruby Gems or from GitHub.

    sudo gem install fluent-plugin-loggly
    

  5. Configure Fluentd
  6. Paste in the follow code to create a Loggly client and log a hello world message.

    <match your_match>
        type loggly
        loggly_url https://logs-01.loggly.com/inputs/TOKEN/tag/fluentd
    </match>
    

    Replace:

  7. Send Test Events
  8. Run Fluentd with some example logs to send test events to Loggly.

  9. Verify Events
  10. Search Loggly for events with the fluentd tag over the past 20 minutes. It may take a few minutes to index the event. If it doesn’t work, see the troubleshooting section below.

    tag:fluentd

    Click on one of the logs to show a list of JSON fields. If you don’t see them, please check that you are using one of our automatically parsed formats.

Advanced Fluentd Logging Options

Troubleshooting Fluentd Logs

If you don’t see any data show up in the verification step, then check for these common problems.

    Check the fluentd plugin:

  • Wait a few minutes in case indexing needs to catch up
  • Run “sudo tcpdump dst logs-01.loggly.com and port 80″ to verify HTTP events are being sent to Loggly
  • Still Not Working?

  • Search or post your own question in the community forum.
Thanks for the feedback! We'll use it to improve our support documentation.


Top