No commit activity in last 3 years
No release in over 3 years
Fluent outplugins that forward logs to Newrelic Insights
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 0
>= 0

Runtime

 Project Readme

Fluentd output plugin for New Relic Insights

Installation

gem 'fluentd'
gem 'fluent-newrelic-insights'

Configuration

Account ID and Insert Key

account_id and insert_key are required.

<match **>
  @type newrelic_insights
  account_id <Your Account ID>
  insert_key <Your Insert Key>
</match>

Event Type Key

You can specify event_type_key attribute which is used for Insights' eventType. The default value is eventType

<match **>
  @type newrelic_insights
  account_id <Your Account ID>
  insert_key <Your Insert Key>
  event_type_key event
</match>

Event Data Key

<match **>
  @type newrelic_insights
  account_id <Your Account ID>
  insert_key <Your Insert Key>
  event_type_key event
  event_data_key eventData
</match>

event_data_key attribute is used to specify the root event data object. The default value is . which sends an entire log data to Insights. For example, if you set it to eventData and you get the following log data:

{
  "eventType": "Purchase",
  "foo": "bar",
  "eventData": {
    "amount": 1000,
    "product_id": 123
  }
}

the below data will be sent to Insights'

{
  "eventType": "Purchase",
  "amount": 1000,
  "product_id": 123
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/k2nr/fluent-newrelic-insights.