{"_id":"589cf10eeeb0180f006dfae8","parentDoc":null,"user":"5732062ad720220e008ea1d2","__v":0,"category":{"_id":"57ae593a7c93fa0e001e6b50","__v":0,"project":"56ba46e2ce5d540d00e2d7a7","version":"56ba46e2ce5d540d00e2d7aa","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-08-12T23:18:18.323Z","from_sync":false,"order":4,"slug":"platforms","title":"Platforms"},"project":"56ba46e2ce5d540d00e2d7a7","version":{"_id":"56ba46e2ce5d540d00e2d7aa","project":"56ba46e2ce5d540d00e2d7a7","__v":13,"createdAt":"2016-02-09T20:06:58.727Z","releaseDate":"2016-02-09T20:06:58.727Z","categories":["56ba46e3ce5d540d00e2d7ab","5771a6b145c7080e0072927f","5771a72eb0ea6b0e006a5221","5772e5b20a6d610e00dea073","577c3006b20f211700593629","57ae587bca3e310e00538155","57ae593a7c93fa0e001e6b50","57b1f8263ff6c519005cf074","582601f155b1060f00ec4173","582a62857a96051b0070b011","58ebfae58d5a860f00851fb9","590a75a1ec0d5e190095ab38","59e5253fd460b50010237bed"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-02-09T22:45:34.781Z","link_external":false,"link_url":"https://github.com/logdna/fluent-plugin-logdna","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"Use the LogDNA Fluentd plugin to send your Fluentd logs to LogDNA.\n\n1\\. Install [Fluentd](http://www.fluentd.org/download).\n\n2\\. Install the [LogDNA Fluentd plugin](https://github.com/logdna/fluent-plugin-logdna) with:\n\n````\nsudo gem install fluent-plugin-logdna\n```\nOr, install via td-agent:\n```\nsudo td-agent-gem install fluent-plugin-logdna\n```\n3\\. Add the contents below to **/etc/fluent/fluent.conf**. For td-agent, use **/etc/td-agent/td-agent.conf**\n\n```\n<match your_match>\n  type logdna\n  api_key YOUR_INGESTION_KEY_HERE # replace with your Ingestion Key (required)\n  hostname my_hostname      # replace with your hostname (required)\n  mac C0:FF:EE:C0:FF:       # replace with host mac address\n  ip 127.0.0.1              # replace with host ip address\n  app my_app                # replace with your app name\n</match>\n```\n4\\. Restart Fluentd using your init script. For td-agent use:\n\n```\nsudo /etc/init.d/td-agent restart\n```\n\nFor more detailed information regarding the Fluentd plugin and configuration options, check out our [Github repo](https://github.com/logdna/fluent-plugin-logdna).","excerpt":"","slug":"fluentd","type":"basic","title":"Fluentd"}
Use the LogDNA Fluentd plugin to send your Fluentd logs to LogDNA. 1\. Install [Fluentd](http://www.fluentd.org/download). 2\. Install the [LogDNA Fluentd plugin](https://github.com/logdna/fluent-plugin-logdna) with: ```` sudo gem install fluent-plugin-logdna ``` Or, install via td-agent: ``` sudo td-agent-gem install fluent-plugin-logdna ``` 3\. Add the contents below to **/etc/fluent/fluent.conf**. For td-agent, use **/etc/td-agent/td-agent.conf** ``` <match your_match> type logdna api_key YOUR_INGESTION_KEY_HERE # replace with your Ingestion Key (required) hostname my_hostname # replace with your hostname (required) mac C0:FF:EE:C0:FF: # replace with host mac address ip 127.0.0.1 # replace with host ip address app my_app # replace with your app name </match> ``` 4\. Restart Fluentd using your init script. For td-agent use: ``` sudo /etc/init.d/td-agent restart ``` For more detailed information regarding the Fluentd plugin and configuration options, check out our [Github repo](https://github.com/logdna/fluent-plugin-logdna).