nais job log
nais job log NAME [flags]
Aliases
nais job logs
Fetch and stream logs from a job.
Options
-c,--container- Filter logs to a specific
CONTAINER. Can be repeated. -l,--limit- Maximum number of initial log lines.
--raw-query- Provide a raw query to filter logs. See https://grafana.com/docs/loki/latest/logql/ for syntax.
-s,--since- How far back in time to start the initial batch. Examples: 300s, 1h, 2h45m. Defaults to 1h.
--with-labels- Include labels in log output.
--with-timestamps- Include timestamps in log output.
Inherited options
--config- Specify the
PATHto the configuration file. --confirm-login- Ask for confirmation before starting required login flows. Interactive terminals only.
-e,--environment- Select or filter by Nais
ENVIRONMENT, for example dev-gcp or prod-gcp. Overrides the environment configured with nais defaults set environment. --no-colors- Disable colors in the output.
-t,--team- Select the Nais
TEAMthat owns the resources. Overrides the team configured with nais defaults set team. -v,--verbose- Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.