Logstreem
CLI reference

CLI reference

Every command, environment variable and exit code.

Commands

CommandDoes
logstreem loginAuthorise the CLI and store a token
logstreem logoutRemove a stored credential
logstreem whoamiActive profile, scopes and organisation
logstreem ingest <dataset>Pipe events in from stdin or files
logstreem queryRun LSQL
logstreem tail <dataset>Follow a live stream
logstreem datasets ls|create|get|fields|trim|rmManage datasets
logstreem monitors ls|apply|mute|rmManage alerting rules
logstreem notifiers ls|create|rmManage alert destinations
logstreem dashboards ls|get|applyDashboards as code
logstreem tokens ls|create|rmManage API tokens
logstreem annotate <title>Mark a deploy on every chart
logstreem openOpen the console in a browser
logstreem versionPrint version and check for updates

Environment variables

VariableEffect
LOGSTREEM_TOKENAPI token. Takes precedence over the config file
LOGSTREEM_PROFILEProfile to use when --profile is absent
LOGSTREEM_DATASETDefault dataset for ingest and tail
LOGSTREEM_API_URLOverride the base URL, for a self-hosted proxy
LOGSTREEM_CONFIGConfig file path. Default ~/.logstreem/config.toml
NO_COLORAny value disables ANSI colour

Exit codes

CodeMeaning
0Success
1Generic failure
2Bad usage — unknown flag, missing argument
3Not authenticated, or the token was revoked
4API returned 4xx — including a query that would not parse
5API returned 5xx, or the network failed
6Rate limited after exhausting retries

Stable across releases

Exit codes and --json output shapes are part of the contract. set -e behaves predictably, and a CI script written today keeps working.