Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drivy/fluent-plugin-heroku-syslog-http
Plugin to accept and parse syslog input from heroku http(s) drains, based on fluentd'd http input and regexp parser
https://github.com/drivy/fluent-plugin-heroku-syslog-http
fluentd fluentd-plugin heroku syslog
Last synced: 3 months ago
JSON representation
Plugin to accept and parse syslog input from heroku http(s) drains, based on fluentd'd http input and regexp parser
- Host: GitHub
- URL: https://github.com/drivy/fluent-plugin-heroku-syslog-http
- Owner: drivy
- License: other
- Created: 2018-10-15T14:14:12.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-03-02T11:29:51.000Z (almost 3 years ago)
- Last Synced: 2024-04-24T16:47:12.800Z (9 months ago)
- Topics: fluentd, fluentd-plugin, heroku, syslog
- Language: Ruby
- Homepage:
- Size: 39.1 KB
- Stars: 5
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# fluent-plugin-heroku-syslog-http
Plugins to accept and parse syslog input from [heroku http(s) drains](https://devcenter.heroku.com/articles/log-drains#http-s-drains), based on fluentd'd [http input](https://docs.fluentd.org/v1.0/articles/in_http) and [regexp parser](https://docs.fluentd.org/v1.0/articles/parser_regexp)
## Installation
Install with gem or fluent-gem command as:
```
# for fluentd
$ gem install fluent-plugin-heroku-syslog-http# for td-agent
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-heroku-syslog-http
```## Usage
### Configure heroku_syslog_http input
```
type heroku_syslog_http
port 9880
bind 0.0.0.0
tag heroku
drain_ids ["YOUR-HEROKU-DRAIN-ID"] # optional```
### Example
Heroku's http syslog format:
`00 <13>1 2014-01-01T01:23:45.123456+00:00 host app web.1 - foo`Will parse the following key/values:
```
{
'syslog.pri' => '13',
'syslog.facility' => 'user',
'syslog.severity' => 'notice',
'syslog.hostname' => 'host',
'syslog.appname' => 'app',
'syslog.procid' => 'web.1',
'syslog.timestamp' => '2014-01-29T06:25:52.589365+00:00',
'message' => 'foo'
}
```## Copyright
- Copyright
- Copytight(C) 2018- Drivy
- Copyright(C) 2014-2018 Kazuyuki Honda (hakobera)
- License
- Apache License, Version 2.0