24
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CloudWatch Logsが見づらいのでawslogsを使う

Last updated at Posted at 2016-07-05

#CloudWatch Logs
EC2にCloudWatch Logs agentを入れておくと、AWSに指定したログを送ってくれてAWSのコンソールで見ることができます。しかしながら、AWSのコンソールは非常に使いづらいです。

#awslogs
そこでawslogsの出番です。
Github
https://github.com/jorgebastida/awslogs
クラスメソッドさんの記事
http://dev.classmethod.jp/cloud/aws/show-cloudwatch-logs-with-awslogs-command/

awslogs get "GROUP名"

というふうにコマンドラインに打つだけでログをゲットできます。
-wオプションを使うとtail -fと同じような使い方もできます。

#支援
"awslogs"でググっても全然ヒットしないため記事を書きました。

24
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?