Logs
sfp server logs
sfp server logssfp server logs
sfp server logsUSAGE
$ 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
-t, --tenant=<value> (required) Name of the tenant
-s, --service=<option> Specific service to show logs for
<options: app|critical-worker|normal-worker|batch-worker>
-f, --follow Follow log output in real-time
--tail=<value> [default: 100] Number of lines to show from the end of logs
SSH OPTIONS
--ssh-connection=<value> SSH connection string in the format user@host[:port]
--identity-file=<value> Path to SSH private key file
--passphrase=<value> Passphrase for the SSH private key if required
OTHER OPTIONS
--json Format output as json
-g, --logsgroupsymbol=<value>... Symbol used by CICD platform to group/collapse logs
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
DESCRIPTION
View logs for a tenant's services
This command allows you to:
- View logs from all services or a specific service
- Follow logs in real-time
- Retrieve historical logs
- Filter by service type
Available services:
- app: Main API server logs
- critical-worker: Critical queue worker logs
- normal-worker: Normal queue worker logs
- batch-worker: Batch queue worker logs
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 200
$ sfp server logs --tenant my-app --follow
$ sfp server logs --tenant my-app --ssh-connection user@remote-host --identity-file ~/.ssh/id_rsaViewing Logs
All Services
Specific Service
Historical Logs
Real-time Monitoring
Follow Mode
Log Format Examples
Standard Output
JSON Output
Remote Server Logs
Troubleshooting with Logs
Error Investigation
Performance Analysis
Log Management Scripts
Log Export
Error Monitoring
Best Practices
Last updated