Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote_syslog is not working as expected #59

Open
ACodingfreak opened this issue Dec 31, 2023 · 0 comments
Open

Remote_syslog is not working as expected #59

ACodingfreak opened this issue Dec 31, 2023 · 0 comments

Comments

@ACodingfreak
Copy link

ACodingfreak commented Dec 31, 2023

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant