跳到主要内容

Logs

AWS CloudWatch Logs

Prerequisites:

  • AWS account
  • AWS IAM role with the following permissions:
    • cloudwatch:GetLogEvents
  • SCCCE CLI
  • AWS CLI
  • Elasticsearch + Kibana (optional, for visualization)

Steps:

  1. Install AWS CLI (using SCCCE install awscli or manually)
  2. Configure AWS CLI (Run aws configure and follow the instructions)
  3. Run sccce fetch aws -s CloudWatchLogs to fetch the logs
  4. If Elasticsearch is configured, you will asked if you want to push the logs to Elasticsearch. (Credentials should be provided in the SCCCE configuration file, by defualt ./app.yaml)