signaloid-cli users logs
View account activity logs.
Synopsis
signaloid-cli users logs [options]
Options
| Option | Description |
|---|---|
--from <iso> | Filter from timestamp (ISO 8601) |
--to <iso> | Filter to timestamp (ISO 8601) |
--limit <n> | Limit number of results |
Description
The users logs command retrieves activity logs for your account, showing actions such as logins, builds created, API calls, and other account activities. Logs include timestamps, action types, resource identifiers, and IP addresses.
Examples
View recent activity:
signaloid-cli users logs --limit 20
View activity for specific date range:
signaloid-cli users logs \
--from 2025-01-01T00:00:00Z \
--to 2025-01-31T23:59:59Z
Output:
{
"logs": [
{
"timestamp": "2025-01-13T12:00:00Z",
"action": "build.created",
"resource": "bld_abc123",
"ipAddress": "203.0.113.42"
},
{
"timestamp": "2025-01-13T11:30:00Z",
"action": "auth.login",
"method": "apikey",
"ipAddress": "203.0.113.42"
}
]
}
Filter specific actions:
signaloid-cli users logs --limit 100 | \
jq -r '.logs[] | select(.action == "auth.login") | "\(.timestamp)\t\(.ipAddress)"'
Monitor login activity:
#!/bin/bash
# Check for suspicious login activity
signaloid-cli users logs --limit 50 | \
jq -r '.logs[] | select(.action == "auth.login") | "\(.timestamp)\t\(.ipAddress)"' | \
sort -u | \
while read TIMESTAMP IP; do
echo "Login from $IP at $TIMESTAMP"
done
Daily activity summary:
#!/bin/bash
# Daily activity summary
echo "Activity for $(date -d 'yesterday' +%Y-%m-%d):"
FROM=$(date -d 'yesterday' -u +"%Y-%m-%dT00:00:00Z")
TO=$(date -d 'yesterday' -u +"%Y-%m-%dT23:59:59Z")
signaloid-cli users logs --from $FROM --to $TO | \
jq -r '.logs[] | .action' | \
sort | uniq -c | sort -rn
Notes
- Timestamps must be in ISO 8601 format (e.g.,
2025-01-13T12:00:00Z). - Log retention period depends on your account plan.
- Results are returned in reverse chronological order (most recent first).
- Use
--limitto control the number of results returned.
Troubleshooting
Empty Logs
Problem: No activity logs returned.
Solutions:
- Expand date range using
--fromand--tooptions - Remove or increase the
--limitparameter - Check if account is newly created
- Verify authentication status
Invalid Date Format
Problem: Error about invalid timestamp format.
Solutions:
- Use ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZ - Ensure timestamps are in UTC (ending with
Z) - Example:
2025-01-13T12:00:00Z
"Not authenticated" Error
Problem: Command fails with authentication error.
Solutions:
- Login first:
signaloid-cli auth login - Verify authentication:
signaloid-cli auth whoami - Check API key is valid
See Also
- signaloid-cli users - User management overview
- signaloid-cli users logout-all - Terminate all sessions
- signaloid-cli auth - Authentication commands
- Security Best Practices - Account security