AWStatsでS3&CloudFrontのアクセス解析
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
3,136
On Slideshare
1,791
From Embeds
1,345
Number of Embeds
5

Actions

Shares
Downloads
3
Comments
0
Likes
2

Embeds 1,345

http://blog.suz-lab.com 771
http://www.cloudpack.jp 304
http://blog.cloudpack.jp 235
http://webcache.googleusercontent.com 34
http://10.33.21.57 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. @suz_lab
  • 2. AWStats(1)
  • 3. AWStats(2) Webのアクセスログ解析 FTPやメールのログの解析も可能 StaticなHTMLとしても出力可能 解析対象ログのフォーマットに合わせて 設定ファイルを柔軟に調整可能
  • 4. S3のアクセスログ(1) “AWS Management Console”で設定可能
  • 5. S3のアクセスログ(2) TargetPrefixYYYY-mm-DD-HH-MM-SS-UniqueString のファイル名で出力
  • 6. S3のアクセスログ(3) アクセスログのフォーマット( 詳しくは下記URL)http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?LogFormat.htmlbeed59edb3a4edc0f83cadae6ecd59a1794f240da6a08fd7d29180ebb72931c2 www.suz-lab.com[26/Jul/2011:14:06:32 +0000] 10.115.144.24beed59edb3a4edc0f83cadae6ecd59a1794f240da6a08fd7d29180ebb72931c2 F71BBF42F0BB4C96REST.GET.LOGGING_STATUS - "GET /www.suz-lab.com?logging HTTP/1.1" 200 - 256 - 22 - "-""S3Console/0.4" -
  • 7. S3のAWStats設定(1)ログフォーマットをS3のものに合わせる※タイムスタンプはUTC...LogType=WLogFormat="%other %virtualname %time1 %host %other%other %other %other %methodurl %code %other %bytesd %other %other %other %refererquot %uaquot %other"LogSeparator=" "LoadPlugin="timezone +9"...
  • 8. S3のAWStats設定(2) AWStats S3 %other beed59edb3a4edc0f83cadae6ecd59a1794f240da6a08fd7d29180ebb72931c2 %virtualname www.suz-lab.com %time1 [26/Jul/2011:14:06:32 +0000] %host 10.115.144.24 %other beed59edb3a4edc0f83cadae6ecd59a1794f240da6a08fd7d29180ebb72931c2 %other F71BBF42F0BB4C96 %other REST.GET.LOGGING_STATUS %other - %methodurl "GET /www.suz-lab.com?logging HTTP/1.1" %code 200 %other - %bytesd 256 %other - %other 22 %other - %refererquot "-" %uaquot "S3Console/0.4" %other -
  • 9. CloudFrontのアクセスログ(1) “AWS Management Console”で設定可能
  • 10. CloudFrontのアクセスログ(2) PrefixDistributionID.YYYY-MM-DD-HH.Unique ID.gz のファイル名で出力
  • 11. CloudFrontのアクセスログ(3) アクセスログのフォーマット(詳しくは下記URL)http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/index.html?AccessLogs.html#Version: 1.0#Fields: date time x-edge-location sc-bytesc-ip cs-method cs(Host) cs-uri-stem sc-status cs(Referer)cs(User-Agent) cs-uri-query…2010-07-20 09:54:41 NRT4 65151 219.117.209.225 GETdhisjetezncwd.cloudfront.net /img/test.jpg 200 -Mozilla/5.0%20(Macintosh;%20U;%20Intel%20Mac%20OS%20X%2010_6_4;%20en-US)%20AppleWebKit/533.4%20(KHTML,%20like%20Gecko)%20Chrome/5.0.375.99%20Safari/533.4 –
  • 12. AWStatsの設定(1)ログフォーマットをCloudFrontのものに合わせる※タイムスタンプはUTC※タブ区切り...LogType=WLogFormat="%time2 %cluster %bytesd %host %method%virtualname %url %code %referer %ua %query"LogSeparator="¥t"LoadPlugin="timezone +9“ShowClusterStats=1...
  • 13. AWStatsの設定(2) AWStats S3 %time2 2010-07-20 09:54:41 %cluster NRT4 %bytesd 65151 %host 219.117.209.225 %method GET %virtualname dhisjetezncwd.cloudfront.net %url /img/test.jpg %code 200 %referer - %ua Mozilla/5.0%20(Macintosh;%20U;%20Intel%20Mac%20OS%20X%2010_6_4; %20en- US)%20AppleWebKit/533.4%20(KHTML,%20like%20Gecko)%20Chrome/5.0. 375.99%20Safari/533.4 %query –
  • 14. AWStatsの設定(3) エッジサーバごとの解析結果
  • 15. cloudpack Tools S3 サポート