Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Created February 6, 2017 07:26
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tkuchiki/358aac85799f17c048c49cff82673c19 to your computer and use it in GitHub Desktop.
fluentd で time というキーを in_tail -> out_xxx で出力したい場合の注意点

in_tail

  • keep_time_key は default = false なので time キーは消される
    • keep_time_key true を追加

out_xxx

  • include_time_key true を設定しただけでは time_key は default = time なので in_tail した time は上書きされる
  • include_time_key true かつ time_key を time 以外にする
# 設定例
include_time_key true
time_key fluentd_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment