log

ファイルの更新履歴をチェックする

git log --follow -p filename

Athena使ってみたコマンド残し

Athena テーブル作成 CREATE EXTERNAL TABLE IF NOT EXISTS elblogdb.dev1_web ( request_timestamp string, elb_name string, request_ip string, request_port int, backend_ip string, backend_port int, request_processing_time double, backend_proces…

s3を更新日時順にソート

S3 aws s3 ls bucket-name/path/to/ | sort -nr 2016-01-18 07:02:14 0 20160118_ahwidygjeh.txt 2016-01-18 07:01:56 0 20160118_abcjdyckdj.txt 2016-01-18 07:00:56 0 20160118_hmafkjhfsa.txt nオプションで先頭を数値とみなしてソートすることで更新日…

cloudfrontのログを落としてくる

CloudFront aws s3 cp s3://XXXXXX/xxxxx-logs/ . --recursive --exclude "*" --include "XXXXX-04-12-12*" gzcat ./* | awk '{print $3}' | sort |uniq -c|sort -nr|head -10

AWSのLBのログをAthenaとquickSightで見れるようにする

Log 概要 s3の設定 LBアクセスログ Athenaの場所 loadbalancerの設定 設定の方法 lambdaの設定 Athenaの設定 quickSightの設定 Iamの設定 その他 tips Log(hoge_www) 概要 LBのAccesslogを解析できるようにする。 アプリケーションlogは別途考える -- s3の設…