fluentdでログを転送してみる
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[fluentd]]
*環境 [#q307c0b2]
Vagrant2台。ただし、CentOS6系であればなんでもOK。また、yu...
*設定 [#v9888d40]
***送信元 [#ke1a784d]
IPアドレス:192.168.33.10
# cp -p /etc/td-agent/td-agent.conf /etc/td-agent/td-age...
# vi /etc/td-agent/td-agent.conf
---
<source>
type tail
path /var/log/httpd/*access_log
pos_file /var/log/td-agent/access_log.pos
tag httpd.access
format apache2
</source>
<match httpd.*>
type forward <--マッチしたソ...
<server>
host 192.168.33.11 <--転送先
</server>
</match>
---
# service td-agent configtest <--エラーが出ないことを...
# service td-agent resart
# service td-agent status <--稼働していることを確認
***受信側 [#m54a7d8f]
IPアドレス:192.168.33.11
# cp -p /etc/td-agent/td-agent.conf /etc/td-agent/td-age...
# vi /etc/td-agent/td-agent.conf
---
<source>
type forward
</source>
<match httpd.*>
type copy
<store>
type file
path /var/log/td-agent/web01/httpd_access.log
</store>
</match>
---
# service td-agent configtest <--エラーが出ないことを...
# service td-agent resart
# service td-agent status <--稼働していることを確認
# tail -f /var/log/td-agent/web01/httpd_access.log <--...
*メモ [#g46934d6]
送信元側で、pathにワイルドカードを指定しておくと、該当す...
終了行:
[[fluentd]]
*環境 [#q307c0b2]
Vagrant2台。ただし、CentOS6系であればなんでもOK。また、yu...
*設定 [#v9888d40]
***送信元 [#ke1a784d]
IPアドレス:192.168.33.10
# cp -p /etc/td-agent/td-agent.conf /etc/td-agent/td-age...
# vi /etc/td-agent/td-agent.conf
---
<source>
type tail
path /var/log/httpd/*access_log
pos_file /var/log/td-agent/access_log.pos
tag httpd.access
format apache2
</source>
<match httpd.*>
type forward <--マッチしたソ...
<server>
host 192.168.33.11 <--転送先
</server>
</match>
---
# service td-agent configtest <--エラーが出ないことを...
# service td-agent resart
# service td-agent status <--稼働していることを確認
***受信側 [#m54a7d8f]
IPアドレス:192.168.33.11
# cp -p /etc/td-agent/td-agent.conf /etc/td-agent/td-age...
# vi /etc/td-agent/td-agent.conf
---
<source>
type forward
</source>
<match httpd.*>
type copy
<store>
type file
path /var/log/td-agent/web01/httpd_access.log
</store>
</match>
---
# service td-agent configtest <--エラーが出ないことを...
# service td-agent resart
# service td-agent status <--稼働していることを確認
# tail -f /var/log/td-agent/web01/httpd_access.log <--...
*メモ [#g46934d6]
送信元側で、pathにワイルドカードを指定しておくと、該当す...
ページ名: