runai-bgu logs Manual
Introduction
runai-bgu logs is a command-line interface (CLI) for viewing logs of workloads on the BGU HPC cluster.
This command provides access to the output and error logs from both workspace and training workloads. The command automatically detects the workload type and retrieves logs with various filtering and formatting options including real-time following, time-based filtering, and container-specific log extraction.
This manual explains how to use runai-bgu logs to monitor and troubleshoot your workloads.
Quick Start
To view logs for a workload, use:
$ runai-bgu logs my-workload
Shows all available logs for the specified workload.
Basic Usage
View Workload Logs
Get logs for a specific workload:
$ runai-bgu logs research-job
Displays all logs from the workload named research-job.
Follow Logs in Real-time
Monitor logs as they are generated:
$ runai-bgu logs research-job --follow
Continuously streams new log entries as they appear, useful for monitoring running workloads.
Advanced Filtering
Time-based Filtering
Container and Pod Selection
Common Use Cases
Understanding Log Output
The logs command displays output from your workload containers:
- Application Output
-
Standard output from your running applications and scripts.
- Error Messages
-
Error logs and stack traces when issues occur.
- System Messages
-
Container and system-level messages about resource allocation and status.
- Timestamps
-
When enabled, shows when each log entry was generated.
Tips for Effective Log Usage
- Real-time Monitoring
-
Use
--followto monitor active workloads and catch issues as they happen. - Time Filtering
-
Use
--sinceto focus on recent activity and avoid overwhelming output. - Container Isolation
-
Use
--containerwhen debugging specific components in multi-container workloads. - Limit Output
-
Use
--tailand--limit-bytesto manage large log volumes effectively.