2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

fluentdのforestプラグインで生成されるプラグインにplugin_idをつける方法

Last updated at Posted at 2016-09-12

fluent-plugin-forestによって生成されるプラグインにplugin_idをつけることで、エラーログの調査などがしやすくなります。

タグごとに plugin_id をつけるには以下のようなconfを書けばOKです。

<match hoge.**>
  @type forest
  subtype your_plugin
  <template>
    @id out_forest_${escaped_tag}
    ...
  </template>
</match>

上記の設定で、forestプラグインによって生成されるプラグインには out_forest_<タグの.を_に置換した文字列> という plugin_id が付与されます。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?