Skip to main content
Version: Weekly Build

Codesphere Log Browser

The Log Browser is an integrated observability tool designed to simplify debugging workloads in Codesphere. It provides a unified view of your application service logs and pipeline execution logs (e.g., historical build step outputs). By centralizing these streams, the Log Browser helps you move from detecting an issue to identifying the root cause quickly.

Reactive Services

This log collection currently applies to Codesphere Reactive services. Other runtime types may have different logging mechanisms.

How to Enable the Log Browser

The Log Browser is not enabled by default. To get started, monitoring first needs to be enabled in both the Resources Group (Team) and the individual Landscape. For detailed instructions, please refer to our How to Enable Monitoring article.

Info icon

Info: Only Resource Group (Team) admins can enable the monitoring platform.

Architectural Overview

architecture

Using the Log Browser

Data Retention and Storage

  • Retention Window: Logs are retained for 14 days. After this period, data is automatically purged.
  • Storage Limits: Log storage is subject to a space quota. If exceeded, the oldest logs are automatically overwritten.
Warning icon

Warning: Disabling monitoring at the Resource Group (Team) level triggers an immediate, permanent deletion of all historical logs for that group. This action cannot be undone.

Filtering and Analysis

  1. Navigate: Open the Log Browser tab from the sidebar. log browser monitor mode

  2. Locate: Select the Log Browser tab. log browser empty state

Tip icon

Tip: No data showing? This usually appears when no requests match your criteria. Adjust your filters or select a different time range.

  1. Filter by service name, replica ID, execution step, or severity. log browser filters

  2. Search & Advanced Syntax Use the search bar to locate specific entries using these operators: log browser search

OperatorSyntaxDescription
Wildcardsauth-*Matches any character sequence (e.g., auth-service, auth-error).
Exact Phrases"Database failed"Finds that specific phrase in that exact order.
KeywordsERRORIsolates logs by simple text content.
  1. Attribute Filter Buttons Expand a log entry and use the magnifying glass icons:
  • Plus (+): Adds the attribute (e.g., Service name) to active filters.
  • Minus (-): Excludes that attribute from your view. log browser filter buttons
  1. Time Filtering: Use the time selector to inspect specific historical periods. log browser time filter

  2. Split Screen: View the Log Browser and Request Browser side-by-side for deep debugging. (Note: Both log and trace collection must be active). log browser split screen

Troubleshooting & Common Errors

Error/MessageRoot CauseSolution/Example
Logs are EmptyApp not printing to stdout/stderr or incorrect run command.Use console.log() (Node) or print() (Python). Check ci.yml.
No requests matchFilter criteria is too restrictive.Adjust filters or time range.
Time Zone ConfusionLogs are timestamped in UTC.Adjust local perception or use a viewer with TZ conversion.

How Codesphere Collects Logs

Codesphere uses OpenTelemetry (OTel), a standard industry framework, to process data.
It follows a Unified Format: Metadata (Replica IDs, Service Names) is attached automatically.

Frequently Asked Questions

  1. What is the retention period for logs?

    Logs are retained for 14 days. Warning: Deactivating monitoring at the Team level deletes all logs immediately and permanently.

  2. How are logs collected?

    Logs are collected from the stdout/stderr streams of each service's execution steps. This data is then transported to the observability platform for storage and analysis.

  3. Can logs be exported?

    Currently, logs cannot be exported directly as a file (CSV/TXT). We recommend manual copying for long-term auditing.

    Tip icon

    Have a feature request? Help us shape the future of Codesphere. You can request new features or vote on the community roadmap at feedback.codesphere.com.

  4. Why don’t I see any data in the table?

    To ensure exact 1:1 matching between traces and logs, your application should utilize OpenTelemetry standards. If OpenTelemetry is not detected, the system will fallback to timestamp correlation. While usually accurate, timestamp matching may occasionally surface nearby logs rather than the exact line responsible for the request. log browser

  5. Why am I not able to turn on log collection?

    You likely need Admin permissions for the Resource Group (Team). Contact your Admin to enable monitoring. log browser no monitoring on