mutao.net

いわゆる雑記。

2021-07-04から1日間の記事一覧

td-agentでnginxのaccesslogを収集

前回apacheのtd-agentの設定は書いたけどnginxはまだ書いていなかったのでメモ。 <source> @type tail path /var/log/nginx/access.log format nginx tag nginx.access pos_file /var/log/td-agent/nginx.access.log.pos </source> <match nginx.access> @type elasticsearch host 127.0.0.1 port </match>…