# fluent-plugin-logdna

[![Gem Version](https://badge.fury.io/rb/fluent-plugin-logdna.svg)](https://badge.fury.io/rb/fluent-plugin-logdna)

Using fluent-plugin-logdna, you can send the logs you collect with Fluentd to LogDNA.

## Instructions

* Install [Fluentd](http://www.fluentd.org/download)
* `gem install fluent-plugin-logdna` or `td-agent-gem install fluent-plugin-logdna` if you are using td-agent.
* Make sure you have a LogDNA account.
* Configure Fluentd like the following:

~~~~~
<match your_match>
  type logdna
  api_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # paste your api key here (required)
  hostname my_host                         # replace with your hostname (required)
  mac C0:FF:EE:C0:FF:EE                    # replace with host mac address
  ip 127.0.0.1                             # replace with host ip address
  app my_app                               # replace with your app name
</match>
~~~~~
* Restart fluentd to pick up the configuration changes.

For advanced configuration options, refer to the [buffered output parameters documentation.](http://docs.fluentd.org/articles/output-plugin-overview#buffered-output-parameters)

Questions or concerns? Contact [support@logdna.com](mailto:support@logdna.com).

# fluent-plugin-logdna

[![Gem Version](https://badge.fury.io/rb/fluent-plugin-logdna.svg)](https://badge.fury.io/rb/fluent-plugin-logdna)

Using fluent-plugin-logdna, you can send the logs you collect with Fluentd to LogDNA.

## Instructions

* Install [Fluentd](http://www.fluentd.org/download)
* `gem install fluent-plugin-logdna` or `td-agent-gem install fluent-plugin-logdna` if you are using td-agent.
* Make sure you have a LogDNA account.
* Configure Fluentd like the following:

~~~~~
<match your_match>
  @type logdna
  api_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # paste your api key here (required)
  hostname my_host                         # replace with your hostname (required)
  mac C0:FF:EE:C0:FF:EE                    # replace with host mac address
  ip 127.0.0.1                             # replace with host ip address
  app my_app                               # replace with your app name
</match>
~~~~~
* Restart fluentd to pick up the configuration changes.

For advanced configuration options, refer to the [buffered output parameters documentation.](http://docs.fluentd.org/articles/output-plugin-overview#buffered-output-parameters)

Questions or concerns? Contact [support@logdna.com](mailto:support@logdna.com).

Use `@type` to specify plugin
Use `@type` to specify plugin

Because docs.fluentd.org uses `@type` to specify plugin in sample configuration.
