Skip to main content
Sumo Logic

Collect Streaming Data for CollectD Metrics

Use the following procedure to collect metrics for CollectD.

Linux

  1. Select your data type.
  2. Select Existing Collector to use a Collector that has already been installed, or select New Collector to install a new Collector.
    • Existing Collector. Select the Collector from the list.
    • New Collector. Select Linux from the menu. To download and install a Linux Collector, open a terminal, then click Copy to copy and paste the provided code into the terminal. As the Collector installs, follow the prompts. This may take a few minutes. Once the Collector has been installed and registered, the Continue button becomes active.
  3. Click Continue.
  4. Source Category, which will help you search your logs later, is filled automatically. You can edit the name if you like.
  5. Select the protocol to use for streaming Graphite-formatted metrics. For CollectD metrics, choose TCP. UDP metrics from CollectD are not currently supported.
  6. Enter the port you are using to stream your Graphite-formatted metrics. Enter the port number. 
  7. In your CollectD installation, edit the collectd.conf file (/etc/collectd.conf) to enable the Write_Graphite plugin. Click Copy Config to copy the provided code and paste it into the file.
  8.  Now restart or start collectd (sudo /etc/init.d/collectd restart).
  9. Click Continue

Mac OS

  1. Select your data type.
  2. Select Existing Collector to use a Collector that has already been installed, or select New Collector to install a new Collector.
    • Existing Collector. Select the Collector from the list.
    • New Collector. To download and install a Mac OS Collector, open a terminal, then click Copy to copy and paste the provided code into the terminal. As the Collector installs, follow the prompts. This may take a few minutes. Once the Collector has been installed and registered, the Continuebutton becomes active.
  3. Click Continue.
  4. Source Category, which will help you search your logs later, is filled automatically. You can edit the name if you like.
  5. Select the protocol to use for streaming Graphite-formatted metrics. For CollectD metrics, choose TCP. UDP metrics from CollectD are not currently supported.
  6. Enter the port you are using to stream your Graphite-formatted metrics. Enter the port number. 
  7. In your CollectD installation, edit the collectd.conf file (/etc/collectd.conf) to enable the Write_Graphite plugin. Click Copy Config to copy the provided code and paste it into the file.
  8.  Now restart or start collectd (sudo /etc/init.d/collectd restart).
  9. Click Continue

CollectD Configuration Example

# Un-comment the line to load write_graphite plugin
LoadPlugin write_graphite

# Add write_graphite plugin
    <Plugin write_graphite>
        <Node "SumoLogic">
            Host "localhost"
            #Host “remote.hostname.com”
            Port "2005"
            Protocol "tcp"
            LogSendErrors true
            # Prefix "collectd."
            #Postfix ""
            StoreRates true
            AlwaysAppendDS false
            EscapeCharacter "."
        </Node>
    </Plugin>

While the data type is being configured, the Setup Wizard provides a progress bar, and at this point, you can either add more data or go to the Sumo Logic Web Application. If you leave the wizard and go to the Sumo Logic Web Application, a progress bar is displayed in the main navigation bar to let you know when the configuration is finished.

Finish

When the Finish page displays, you can:

  • Add More Data. Click to return to the Setup Wizard to configure more sources.
  • Start Searching My Logs. When your data is ready, to go to the Search page and view the results of the search configured for your file. In a separate search tab, you can view the High Priority Keyword search, which displays results if your data contains "error", "fail", or "exception" keywords.
  • Dashboards. After your search is launched, you will be notified when your Sumo Logic App Dashboards are ready to use. All Dashboards are launched in Live Mode for Setup Wizard users. 
  • You can also watch videos and tutorials to learn how to use Sumo Logic.

Click Go Back to return to the main Setup Wizard screen.

Click Exit Setup Wizard to exit.