https://github.com/takumakanari/fluent-plugin-redmine
Fluentd output plugin to create ticket in redmine
https://github.com/takumakanari/fluent-plugin-redmine
fluentd ruby
Last synced: about 2 months ago
JSON representation
Fluentd output plugin to create ticket in redmine
- Host: GitHub
- URL: https://github.com/takumakanari/fluent-plugin-redmine
- Owner: takumakanari
- License: other
- Created: 2014-12-08T23:48:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T10:42:17.000Z (about 8 years ago)
- Last Synced: 2025-04-18T03:29:32.163Z (about 2 months ago)
- Topics: fluentd, ruby
- Language: Ruby
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# fluent-plugin-redmine
## Overview
Output plugin for [Fluentd](http://fluentd.org). Create and register a ticket to redmine from messages.
## Installation
Install with `gem`, `fluent-gem` or `td-agent-gem` command as:
```
# for system installed fluentd
$ gem install fluent-plugin-redmine# for td-agent
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-redmine# for td-agent2
$ sudo td-agent-gem install fluent-plugin-redmine
```## Usage
In your fluentd configration, use `@type redmine`.
Here is example settings:
@type redmine
url http://localhost:3000/
api_key 40a96d43a98b1626c542b04c5780f881c1e1a969
tracker_id 1
priority_id 3
subject The new issue %{issue}
description This is the new issue called %{name}. we cought new exception %{error}!
and here is optional configuration:
project_id myproject # Redmine project id
category_id 70 # Redmine category id
project_id_key key_of_priority_id # key name if the record for priority id
category_id_key key_of_category_id # key name if the record for category id
tag_key my_ tag # 'tag' is used by default
custom_fields [{"id":1, "value" "value01"}] # Redmine custom fields, array of hash with id, value
custom_fields_key key_of_custom_fields # key name if the record for custom fields
debug_http true # set debug_http=true of Net::HTTP module, false is used by default### placeholders
You can look values in records by using `%{hoge}` for subject and description. If you specify *tag_key* in configuration, you can also look tag value by `%{your_specified_tag_key}`.
## TODO
Pull requests are very welcome!!