lep log

Manage and retrieve the logs history of specific jobs, deployments and replicas.

Usage

lep log [OPTIONS] COMMAND [ARGS]...

Options

  • --help : Show this message and exit.

Commands

  • get : Retrieve and display logs from deployments, jobs, or replicas

lep log get

Retrieve and display logs from deployments, jobs, or replicas

Usage

lep log get [OPTIONS]

Options

  • -d, --deployment TEXT : The name of the deployment or a LeptonDeployment object.

  • -j, --job TEXT : Specifies the job ID. To find the job ID, use the 'lep job list' command.

  • -jn, --job-name TEXT : Specifies the job name. If multiple jobs share this name, the logs for the newest job found will be retrieved by default.

  • --replica TEXT : The name of the replica or a Replica object.

  • --start TEXT : The start time in ISO format. Please note that all times must be in UTC. Keywords such as “now,” “today,” and “yesterday” will be interpreted as UTC timestamps. For example, “now” corresponds to datetime.now(timezone.utc).

  • now Example: now (indicates the current time in UTC)

  • Full Date and Time: Format: YYYY/MM/DD HH:MM:SS.123456 Example: 2024/12/25 13:10:01.123456

    Alternate Format: YYYY-MM-DD HH:MM:SS.123456 Example: 2024-12-25 13:10:01.123456

  • today or td: Example Variations: today (defaults to midnight of the current day in UTC) today 01 (1 AM of the current day) today 01:10 (1:10 AM of the current day) today 01:10:01 (1:10:01 AM of the current day) today 01:10:01.123456 (1:10:01 AM with microseconds precision)

  • yesterday or yd: Example Variations: yesterday (defaults to midnight of the previous day in UTC) yesterday 13 (1 PM of the previous day) yesterday 13:10 (1:10 PM of the previous day) yesterday 13:10:05 (1:10:05 PM of the previous day) yesterday 13:10:01.123456 (1:10:01 PM with microseconds precision on the previous day)

  • --end TEXT : The end time in ISO format. Please note that all times must be in UTC. Keywords such as “now,” “today,” and “yesterday” will be interpreted as UTC timestamps. For example, “now” corresponds to datetime.now(timezone.utc).

  • now Example: now (indicates the current time in UTC)

  • Full Date and Time: Format: YYYY/MM/DD HH:MM:SS.123456 Example: 2024/12/25 13:10:01.123456

    Alternate Format: YYYY-MM-DD HH:MM:SS.123456 Example: 2024-12-25 13:10:01.123456

  • today or td: Example Variations: today (defaults to midnight of the current day in UTC) today 01 (1 AM of the current day) today 01:10 (1:10 AM of the current day) today 01:10:01 (1:10:01 AM of the current day) today 01:10:01.123456 (1:10:01 AM with microseconds precision)

  • yesterday or yd: Example Variations: yesterday (defaults to midnight of the previous day in UTC) yesterday 13 (1 PM of the previous day) yesterday 13:10 (1:10 PM of the previous day) yesterday 13:10:05 (1:10:05 PM of the previous day) yesterday 13:10:01.123456 (1:10:01 PM with microseconds precision on the previous day)

  • --limit INTEGER : The maximum number of result lines to return.(default: 5000) [default: 5000]

  • --path PATH : Local directory path to save the log TXT files.

  • --query TEXT : Specify the query string

  • --help : Show this message and exit.

Copyright @ 2025, NVIDIA Corporation.