Skip to main content

diagrid agent logs

Stream logs for an Agent

Description​

Stream logs for an Agent in a project.

diagrid agent logs <agent> [flags]

Examples​


# Retrieve the most recent logs
diagrid agent logs my-agent --project my-project

# Get the last 5 log entries
diagrid agent logs my-agent --project my-project -t 5

# Follow the logs
diagrid agent logs my-agent --project my-project --follow

Options​

-p, --project string Name of existing project
-f, --follow Follow the logs
-t, --tail int Number of log entries to display from the most recent entry (default 10)
-h, --help help for logs

Options inherited from parent commands​

--api-key string Diagrid Cloud API key

SEE ALSO​