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

Remote_syslog is not working as expected #59

Open ACodingfreak opened 6 months ago

ACodingfreak commented 6 months ago

Hi All,

I am quite new to fluentd.

Currently I am using following fluentd configuration where I am redirecting my syslog messages to fluentd which is sharing the same to remote syslog server via remote_syslog and a local file. I can see the syslog messages successfully written into local file but not into remote syslog server.

I also tried using local syslog client to write the logs into remote syslog server and it works fine. Issue is only observed when using the fluentd. Any suggestions would be of great help

<source>
  @type syslog
  port 5140
  bind 0.0.0.0
  tag syslog
  <transport tcp>
  </transport>
  <parse>
    @type syslog
    with_priority true
    message_format rfc3164
  </parse>
</source>

<match syslog.**>
  @type file
  path /var/log/fluent/testlog/01
</match>

<match syslog.**>
  @type remote_syslog
  host 10.10.26.209
  port 514
  hostname "#{Socket.gethostname}"
  facility local0
  <buffer>
    @type file
    path /var/log/fluent/syslog_buffer
    flush_interval 10s
  </buffer>
</match>