Code Ocean VPC Administration Guide
v3.6
v3.6
  • Code Ocean VPC Administration Guide
  • Overview
    • System Overview
    • System Capacity and Sizing
  • Installation Guide
    • Prerequisites
    • CloudFormation Deployment
    • Deployment Parameters
    • Deployed IAM Resources
    • Subdomain Delegation
    • Create an Admin Account
    • Upgrade Code Ocean
    • Remove Code Ocean
    • Least privileged deployment IAM role
  • Management Guide
    • User Management
      • Adding/Removing an Administrator
      • Inviting New Users
      • Generating a Reset Password Link
      • Deactivate User
      • Extend Ownership
    • User Licenses Guide
    • Set up a User Banner Message
    • Enable Git Integration
    • Starter Environments
      • Deploy Base Image
      • Image Actions
      • Deploying Private Docker Base Images
    • Set up Custom Metadata
    • Authentication
    • SCIM Provisioning using Azure Active Directory
    • SCIM Provisioning using Okta
    • ACM Certificate Renewal
    • Deleting Released Capsules
    • Assumable Roles
    • Backup and restore
    • Public Collections
    • Download Settings
  • Troubleshooting Guide
    • Collecting Logs with the Support Bundle
    • Searching Logs in AWS CloudWatch
    • Detecting Drift in AWS CloudFormation Stacks
    • 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 BundleNextDetecting Drift in AWS CloudFormation Stacks

Last updated 1 month 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

You can also use CloudWatch Logs Insights 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.

  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: