vagrantを利用してサーバA(ip 192.168.33.10)とサーバB(ip 192.168.33.11)を立て
サーバBからサーバAにログを転送しようとしていますがサーバAでfluentdのログファイルが作成されません。
サーバBのtd-agent.conf
# Input <source> type tail path /var/log/secure format syslog pos_file /var/log/td-agent/secure.pos tag secure </source> # Output <match secure> type forward send_timeout 60s recover_wait 10s heartbeat_interval 1s phi_threshold 8 hard_timeout 60s <server># <= 送信先サーバーの指定 host 192.168.33.10 port 24225 </server> </match>
サーバAのtd-agent.conf
# Input <source> type forward port 24225 bind 0.0.0.0 </source> # Output <match secure> type file path /var/log/td-agent/all_messages.log time_slice_format %Y%m%d time_format %Y%m%dT%H%M%S%z </match>
サーバBからnmapコマンドを利用してサーバAの24225ポートがtcpもudpも開いていることは確認できています。
また、サーバAもBもtd-agent起動ユーザをrootにしているので書き込み権限の問題もありません。
まだ、fluentdを学習し始めて日が浅いので抜けている設定があるかもしれません。
ご指摘頂けると助かります。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。