GithubHelp home page GithubHelp logo

isabella232 / logstash-output-wavefront Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wavefronthq/logstash-output-wavefront

0.0 0.0 0.0 12 KB

Wavefront Logstash Output Plugin

License: Apache License 2.0

Ruby 100.00%

logstash-output-wavefront's Introduction

Wavefront Logstash Output Plugin

Wavefront Output Plugin for Logstash parse the log data and sends it as metrics to the Wavefront.

Installation

  1. Install Wavefront Logstash Output Plugin

    • Install ruby.
    • Install ruby bundler -- gem install bundler.
    • Clone logstash-output-wavefront and cd to the directory.
    • Build the plugin -- gem build logstash-output-wavefront.gemspec.
    • Install the plugin --logstash-plugin install *wavefront*.gem.
  2. Create a config file that specifies wavefront as the output plugin and specifies settings for other plugins. You can see some examples under Optional Configuration below.

    output {
        wavefront {
          host => "<Proxy-IP>"
        }
    }
    

    Optional Configuration

      port          Metric Port (Default - 2878)
      prefix        Metric Prefix (Default - "logstash")
      metrics       List of metrics (Default - ["count", "mean"])
      source        Metric source (Default - Hostname of the node running logstash)
    

    You can send log events to Wavefront using the output plugin for Logstash. The events must have the following format:

    {
       "bytes" => {
         "count" => 200,
         "mean" => 42.2
       },
       "error" => {
         "count" => 123,
         "code" => 404
       },
       "message" => "I'm not a hash type, so I won't get sent."
     }
    

    The Wavefront output plugin for Logstash generates the following metrics from the event and sends the metrics to Wavefront:

    logstash.bytes.count 200
    logstash.bytes.mean 42.2
    logstash.error.count 123
    

    You can send point tags for a metric to Wavefront using the Wavefront output plugin for Logstash. The event must have the following format:

    {
       "bytes.tagz.type=access.region=mumbai" => {
         "count" => 200,
         "mean" => 42.2
       },
       "error" => {
         "count" => 123,
         "code" => 404
       },
       "message" => "I'm not a hash type, so I won't get sent."
     }
    

    Below metrics are the output of the above event:

    logstash.bytes.count 200 type=access region=mumbai
    logstash.bytes.mean 42.2 type=access region=mumbai
    logstash.error.count 123
    

    Note: In this example the Wavefront output plugin has dropped the logstash.error.code metric because the default metrics list only includes count and mean. To include the code metric, override the default metrics to ["count", "mean", "code"] in the wavefront output plugin.

  3. Start logstash and specify the configuration file with the -f flag.

    bin/logstash -f <config-file>
    

License

Apache 2.0 License.

How to Contribute

  • Reach out to us on our public Slack channel.
  • If you run into any issues, let us know by creating a GitHub issue.

logstash-output-wavefront's People

Contributors

panghy avatar yogeshprasad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.