Skip to content

Instantly share code, notes, and snippets.

@yn-misaki
Last active June 14, 2016 01:39
Show Gist options
  • Save yn-misaki/3302439819ad21748f43883e04980c9f to your computer and use it in GitHub Desktop.
Save yn-misaki/3302439819ad21748f43883e04980c9f to your computer and use it in GitHub Desktop.
ファイルがどの位置までログが転送されたか確認する方法(fluentd/FlyData) ref: http://qiita.com/yn-misaki/items/2d9aa010c5dccd44e156
# 英字は大文字にする必要があります
$ echo "obase=10;ibase=16;0000000000014E3D" | bc
$ head -c 85565 /var/log/httpd/access_log
/var/log/httpd/access.log 0000000000014e3d 060d4a45
SELECT *
FROM apache_access
WHERE date = '2016-06-1015:00:00+09:00'
$ ls -i /var/log/httpd/access_log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment