Last active
June 14, 2016 01:39
-
-
Save yn-misaki/3302439819ad21748f43883e04980c9f to your computer and use it in GitHub Desktop.
ファイルがどの位置までログが転送されたか確認する方法(fluentd/FlyData) ref: http://qiita.com/yn-misaki/items/2d9aa010c5dccd44e156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 英字は大文字にする必要があります | |
$ echo "obase=10;ibase=16;0000000000014E3D" | bc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /var/log/httpd/access_log.pos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ head -c 85565 /var/log/httpd/access_log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/httpd/access.log 0000000000014e3d 060d4a45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM apache_access | |
WHERE date = '2016-06-1015:00:00+09:00' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -i /var/log/httpd/access_log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85565 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment