개발이야기
fluentd syslog output
준호씨
2016. 5. 8. 17:05
반응형
fluentd 에서 output 을 remote syslog 로 쏠 일이 생김
기본기능으로 제공 하는거 같지는 않아서 http://www.fluentd.org/plugins/all 에서 플러그인을 찾아 보니 remote_syslog 라는 플러그인이 보인다.
설명은 다음과 같다.
Fluentd output plugin for remote syslog
설치는
fluent-gem install fluent-plugin-remote_syslog
라고 되어 있지만 td-agent 환경이라
td-agent-gem install fluent-plugin-remote_syslog
로 설치
설정은 다음과 같은 형식으로 하면 된다
<match foo>
type remote_syslog
host example.com
port 25
severity debug
tag fluentd
</match>
type remote_syslog
host example.com
port 25
severity debug
tag fluentd
</match>
잡담
아놔... 기본 UDP 만 된다. 기존 환경에 TCP 환경 이었군. 역시 그냥 logstash 를 써야 겠다. https://www.elastic.co/guide/en/logstash/current/plugins-outputs-syslog.html 이렇게 기본 플러그인이 있으니 잘 되겠지. 일단 TCP 는 제공 한다고 적혀 있음.
반응형