# fluent-plugin-heroku-http
[![Build Status](https://travis-ci.org/ApplauseOSS/fluent-plugin-heroku-http.svg?branch=master)](https://travis-ci.org/ApplauseOSS/fluent-plugin-heroku-http)
[![Gem Version](https://badge.fury.io/rb/fluent-plugin-heroku-http.svg)](https://badge.fury.io/rb/fluent-plugin-heroku-http)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http?ref=badge_shield)
This is a [fluent](https://fluentd.org) input plugin to accept Heroku HTTPS
log drains.
This plugin is heavily derived from hakobera/fluent-plugin-heroku-syslog
and includes code from the dblN/fluent-plugin-heroku-syslog and
gmile/fluent-plugin-heroku-syslog forks of that code. Unlike that plugin,
this plugin focuses exclusively on HTTPS log drains and gets its tags from
the request PATH, rather than configuration. This allows the input to more
easily be integrated into complex pipelines.
## Installation
Install with `gem` or `td-agent-gem` commands:
```
# using fluentd/gem
$ gem install fluent-plugin-heroku-http
# using td-agent
$ td-agent-gem install fluent-plugin-heroku-http
```
Install using `bundler` in Gemfile:
```
gem 'fluent-plugin-heroku-http'
```
## Configuration
This plugin implements HerokuHttpInput which extends the built-in HttpInput
plugin to accept RFC-5424 formatted syslog messages, framed using syslog TCP
protocol octet counting framing method from RFC-6587, from [Heroku HTTPS
drains](https://devcenter.heroku.com/articles/log-drains#https-drains). This
plugin support all of the `in_http` plugin configuration parameters.
### Basic configuration
```
```
### Filtered by drain IDs
```
```
### Heroku configuration
The fluent tag is parsed from the input request PATH, in the same way as the
[in_http](https://docs.fluentd.org/v1.0/articles/in_http#basic-usage) plugin.
```
# add logdrain to heroku application
$ heroku drains:add https://YOUR-FLUENTD-HOST/DESIRED-FLUENT-TAG
```
## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FApplauseOSS%2Ffluent-plugin-heroku-http?ref=badge_large)