Skip to content

Instantly share code, notes, and snippets.

@repeatedly
Last active August 29, 2015 14:03
Show Gist options
  • Save repeatedly/4cda9ab397148c6946dd to your computer and use it in GitHub Desktop.
Save repeatedly/4cda9ab397148c6946dd to your computer and use it in GitHub Desktop.
in_tail check list

English

Fixed path

  • Check reading /path/to/file
    • read_from_head true / false
  • Check /path/to/file rotation (waiting rotate_wait time and read logs in parallel)
    • mv file file1; touch file
    • mv file file1
    • rm file
    • truncate file

Dynamic path

  • /path/to/*
    • Check start reading new file
    • Check stop tailing deleted file
      • Check pos_file content
  • /path/to/%m
    • Check start reading new file
    • Check stop tailing deleted file
      • Check pos_file content

Japanese

固定path

  • /path/to/file 読み込みチェック
    • read_from_head true / false
  • /path/to/fileのローテーションチェック (rotate_waitちゃんと待つか and 並行して読めているか)
    • mv file file1; touch file
    • mv file file1
    • rm file
    • truncate file

動的なpath

  • /path/to/*
    • ちゃんと新しいファイルを読み込めているか
    • ちゃんと削除されたファイルの読み込みが止まっているか
      • pos_fileをチェックする
  • /path/to/%m
    • ちゃんと新しいファイルを読み込めているか
    • ちゃんと過去のファイルの読み込みが止まっているか
      • pos_fileをチェックする
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment