Sha256: 8bd8cbb8aae22a011561cb7ce508121b51ecc9a3231fe70db69e0254a3cf7846

Contents?: true

Size: 1.78 KB

Versions: 2

Compression:

Stored size: 1.78 KB

Contents

# Fluent::Plugin::NewRelic

fluent-plugin-newlrelictransform is an input plug-in for [Fluentd](http://fluentd.org)

## Installation

These instructions assume you already have fluentd installed. 
If you don't, please run through [quick start for fluentd] (https://github.com/fluent/fluentd#quick-start)

Now after you have fluentd installed you can follow either of the steps below:

Add this line to your application's Gemfile:

    gem 'fluent-plugin-newlrelictransform'

Or install it yourself as:

    $ gem install fluent-plugin-newlrelictransform

## Usage
This plugin can be used in conjunction with fluent-plugin-ironio. A typical use case is to use webhooks in newrelic and forward alerts to ironio. This is done when the alert handling infrastructure is behind a firewall and cannot ingest them directly. The messages coming from ironio is then funnelled to this plugin where it breaks up the alerts into individual ones.
Add the following into your fluentd config.

<match alert.newrelic.in>
  type newrelic
  log_level debug 
</match>

Advance configurations. Please add these as needed.
<match alert.newrelic.out>
type rename_key
log_level debug 
remove_tag_prefix alert.newrelic.out
append_tag alert.newrelic
deep_rename false
rename_rule1 created_at creation_time
rename_rule2 severity criticality
rename_rule3 message event_name
rename_rule4 short_description alert_description
rename_rule5 account_name business_unit_l1
rename_rule6 id source_event_id
rename_rule7 long_description value
rename_rule8 newraw raw
rename_rule9 alert_url intermediary_source
rename_rule10 server source_hostname
</match>


#<match alert.newrelic>
#  type stdout
#</match>

Now startup fluentd

    $ sudo fluentd -c fluent.conf &
    
   
# to test ..
 
    $ cd test; rvmsudo ./newrelic.rb 
  
## To Do
  Inclde travis ci checks

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent-plugin-newrelictransform-0.0.3 README
fluent-plugin-newrelictransform-0.0.2 README