fluent-plugins-nursery / fluent-plugin-remote_syslog

Fluentd plugin for output to remote syslog serivce (e.g. Papertrail)
https://github.com/dlackty/fluent-plugin-remote_syslog
MIT License
68 stars 53 forks source link

Tag Rewrites Don't Work #4

Closed alph486 closed 8 years ago

alph486 commented 8 years ago

Hi there,

I have the fluentd docker logging driver writing to my fluentd instance running this plugin. When I use the plugin using the following configuration:

<match docker.**>
  type remote_syslog
  host <somehost>
  port xxxxx
  severity debug
  tag my.${tag}
</match>

What I would expect based on the fluent-mixin-rewrite documentation is that my tag would read my.docker.<containername>. Instead it is my.${tag} literally. I could be misconfiguring or misunderstanding this functionality... is that the case?

If not, from a glance at the docs from fluent-mixin-rewrite and your code I wonder if on this line doing the emit should be passing emit_tag instead of just tag?

Thanks in advance!

scalp42 commented 8 years ago

@alph486 see https://github.com/dlackty/fluent-plugin-remote_syslog/issues/1 and https://github.com/dlackty/fluent-plugin-remote_syslog/pull/2

Might want to ping https://github.com/y-ken/fluent-mixin-rewrite-tag-name/issues/1

Still not working for me :/

dlackty commented 8 years ago

@scalp42 @alph486 A new release v0.3.2 was uploaded to rubygems.org. Could you give it a try and let me know if it works?

@scalp42 Sorry for the long wait. Finally found some time to maintain this gem and added some tests.

scalp42 commented 8 years ago

@dlackty thanks a lot for the help on this!

I'll test soon

alph486 commented 8 years ago

@dlackty Thanks! Found this during a POC period. I will report back after I begin implementation.