Skip to main content

Logs API Reference

Customer-hosted cloud features

note

Some features are only available on customer-hosted clouds. Reach out to support@anyscale.com for info.

Logs CLI

anyscale logs cluster

Usage

anyscale logs cluster [OPTIONS] [GLOB]

Access log files of a cluster.

Options

  • --id: Provide a cluster ID.
  • -d/--download: Download logs to the current working directory, or a specified path.
  • -t/--tail: Read the last N lines of logs.
  • -ip/--node-ip: Filter logs by a node IP.
  • --instance-id: Filter logs by an instance ID.
  • --worker-only: Download logs of only the worker nodes.
  • --head-only: Download logs of only the head node.
  • --unpack/--no-unpack: Whether to unpack the combined-worker.log after downloading.
  • --download-dir: Directory to download logs into.
  • --ttl: TTL in seconds to pass to the service that generates presigned URL's (default: 4h).
  • --parallelism: Number of files to download in parallel at a time.