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

Issue while using single_value formatter plugin #32

Closed dgonzalezruiz closed 5 years ago

dgonzalezruiz commented 5 years ago

Hello!

it seems that setting the @type to single_value in the format section leads to fluentd stop outputting logs at all. I turned on verbosity on td-agent, but I didn't find any log line referencing any kind of error (similar output after adding/removing it, just that fluentd actually delivers log lines when removing the single_value type formatter.

Working with ltsv (default type) lead to different results (I can configure ltsv parameters without issues).

I am not sure about whether this is a flaw in the current version, an incompatibility of the gem with my current td-agent version or a problem in fluentd itself.

I am running td-agent 1.3.3 on Ubuntu 14.04.

dgonzalezruiz commented 5 years ago

I forgot to update this! This was due to my clumsiness and lack of experience with fluentd; I was selecting the wrong key for single_value formatter, so ofc it was showing empty logs. Something I learnt is to use ltsvformatter before trying any, in order to check all the available tags (e.g. debugging).