Logs

View logs for a tenant's services

sfp server logs

View logs for a tenant's services

USAGE
  $ sfp server logs -t <value> [--json] [-s app|critical-worker|normal-worker|batch-worker] [-f] [--tail <value>]
    [-g <value>...] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [--passphrase
    <value> [--identity-file <value> --ssh-connection <value>]]

FLAGS
  -f, --follow                      Follow log output in real-time
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
  -s, --service=<option>            Specific service to show logs for (app, critical-worker, normal-worker,
                                    batch-worker, caddy, redis)
                                    <options: app|critical-worker|normal-worker|batch-worker>
  -t, --tenant=<value>              (required) Name of the tenant
      --identity-file=<value>       Path to SSH private key file
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --passphrase=<value>          Passphrase for the SSH private key if required
      --ssh-connection=<value>      SSH connection string in the format user@host[:port]
      --tail=<value>                [default: 100] Number of lines to show from the end of logs

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  View logs for a tenant's services

EXAMPLES
  $ sfp server logs --tenant my-app

  $ sfp server logs --tenant my-app --service app

  $ sfp server logs --tenant my-app --service normal-worker --tail 100

  $ sfp server logs --tenant my-app --follow

  $ sfp server logs --tenant my-app --ssh-connection user@remote-host --identity-file ~/.ssh/id_rsa

See code: src/commands/server/logs.tsarrow-up-right

Last updated

Was this helpful?