Code Ocean VPC Administration Guide
v2.2
v2.2
  • Code Ocean VPC Administration Guide
  • Overview
    • System Overview
    • System Capacity and Sizing
  • Installation Guide
    • Prerequisites
    • CloudFormation Deployment
    • Deployment Parameters
    • Deployment IAM role
    • Subdomain Delegation
    • Create an Admin Account
    • Upgrade Code Ocean
    • Remove Code Ocean
  • Management Guide
    • User Management
      • Admin Signup
      • Adding/Removing an Administrator
      • Inviting New Users
      • Generating a Reset Password Link
      • Deactivate User
    • Set up a User Banner Message
    • Enable Git Integration
    • Starter Environments
      • Deploy Base Image
      • Images Action
      • Deploying Private Docker Base Images
    • SCIM Provisioning using Azure Active Directory
    • Set up an Authentication
    • SCIM Provisioning using Okta
  • Troubleshooting Guide
    • Collecting Logs with the Support Bundle
    • Searching Logs in AWS CloudWatch
    • Alarms
Powered by GitBook
On this page

Was this helpful?

  1. Troubleshooting Guide

Searching Logs in AWS CloudWatch

Learn how to search through Code Ocean VPC logs in AWS CloudWatch.

PreviousCollecting Logs with the Support BundleNextAlarms

Last updated 3 years ago

Was this helpful?

Code Ocean VPC sends its logs to AWS CloudWatch Logs. There are 3 log groups:

  • [acmecorp]/instances - Contains all EC2 instances' OS logs.

  • [acmecorp]/services - Contains Code Ocean's services logs. Each service has its own log stream (e.g. services/codeocean_[service_name]_1).

  • [acmecorp]/workers - Contains all workers logs. Each executed capsule run would have its own log stream with the computation ID (e.g. worker/runner/[computation_id]).

How to search the logs

Viewing Code Ocean log data can help in troubleshooting the system or deployment issues.

CloudWatch Log Streams

The simplest way would be through the search bar in the top of every log stream.

If you are not sure which log stream you need, use the Search all button in the top right corner of the Log group.

CloudWatch Logs Insights

  1. Under CloudWatch Logs, go to Insights tab

  2. Choose the relevant log group, time frame, and under the query pane enter the selected query. For example, the following query will display all critical log level errors:

You can also use to search the logs. The Logs Insights offers faster query times and allows for more complex queries. Note that this service can incur additional costs in your AWS account.

CloudWatch Logs Insights