akkasls logs

Display the last few lines (default: 100) of logs for a specific service.

Synopsis

Get the last few lines (default: 100) of logs for a specific service in the current project. If none of the --lifecycle or --instance flags are supplied, defaults to outputting instance and lifecycle logs.

akkasls logs [SERVICE] [INSTANCE] [flags]

Examples

> akkasls logs my-service
2021-05-27 03:44:57.755 app[service-f97bb7497-pqmk5] itemAdded::push
2021-05-27 03:44:58.053 app[service-f97bb7497-pqmk5] return state
...

Options

      --color            Whether color output should be used (default true)
  -f, --follow           Whether logs should be followed.
  -h, --help             help for logs
      --instance         Whether instance logs should be included.
      --lifecycle        Whether lifecycle logs should be included.
      --owner string     the owner of the project to use, needed if you have two projects with the same name from different owners
      --project string   project to use if not using the default configured project
  -t, --tail int         The maximum number of lines to fetch. If follow is also supplied, this will be the number of existing lines that will be output. (default 100)

Options inherited from parent commands

      --config string      location of config file (default "~/.akkaserverless/config.yaml")
      --context string     configuration context to use
  -o, --output string      set output format to one of [text,json,gotemplate=] (default "text")
  -q, --quiet              set quiet output (helpful when used as part of a script)
      --timeout duration   client command timeout (default 10s)
  -v, --verbose            set verbose output

SEE ALSO

  • akkasls - Akka Serverless control