fluentd
in_tailプラグインでformatにjsonを指定すると、jsonをそのまま(文字列にせずに)読める。このように設定しておいて <source> type tail path /tmp/error.log pos_file /tmp/error.log.pos tag debug.error format json </source> <match debug.**> type stdout </match>ログファイルにjsonを書き込ん…
/etc/fluent-agent-lite.conf の LOGS=$(cat <<"EOF" ... EOF )を LOGS=$(cat <
fluentdでunix domain socketを使うには、設定ファイルに下記を追加する。 <source> type unix </source>UNIXドメインソケットのパスは環境変数 FLUENT_SOCKET で指定する。 指定しなければ /var/run/fluent/fluent.sock に作られる。 env FLUENT_SOCKET=sock/fluent.sock flu…