nais log

nais log [flags]

Aliases

  • nais logs

Fetch and stream logs from a team.

Options

-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.
--with-labels
Include labels in log output.
--with-timestamps
Include timestamps in log output.

Inherited options

--config
Specify the PATH to the configuration file.
-e, --environment
Specify the ENVIRONMENT to use for this command. Overrides the default environment from configuration.
--no-colors
Disable colors in the output.
-t, --team
Specify the TEAM to use for this command. Overrides the default team from configuration.
-v, --verbose
Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.