Job Logs
Description
The bacalhau job logs
command allows users to retrieve logs from a job that has been previously submitted. This command is useful for tracking and debugging the progress and state of a running or completed job.
Usage
Flags
-f
,--follow
:Description: This flag allows the user to follow the logs in real-time after fetching the current logs. It provides a continuous stream of log updates, similar to
tail -f
in Unix-like systems.
-h
,--help
:Description: Display help information for the
logs
command.
Global Flags
--api-host string
:Description: Specifies the host for the client and server to communicate through REST. This flag is disregarded if the
BACALHAU_API_HOST
environment variable is set.Default:
bootstrap.production.bacalhau.org
--api-port int
:Description: Sets the port for RESTful communication between the client and server. If the
BACALHAU_API_PORT
environment variable is available, this flag is ignored.Default:
1234
--log-mode logging-mode
:Description: Determines the desired log format. Available options include
default
,station
,json
,combined
, andevent
.Default:
default
--repo string
:Description: Specifies the path to the bacalhau repository.
Default:
$HOME/.bacalhau
Examples
Display Logs for a Previously Submitted Job with Full ID:
Command:
Expected Output:
Follow Logs in Real-Time:
Command:
Expected Output:
Display Logs Using a Shortened ID:
Command:
Expected Output: