logsh The logsh CLI interacts with your Logship database from the command line. Query logs, upload data, and manage connections and accounts — built for both interactive use and CI/automation pipelines.
You can check out the source on GitHub at https://github.com/logship-io/logsh or download the latest release .
Quick Start Copy
logsh ctx add https:/ / my.logship.server
logsh whoami
logsh query -q 'MyTable | take 10'
logsh upload my_table data .csv Commands Command Alias Description contextctxManage contexts (server connections) configcfgView and manage logsh configuration accountaccManage Logship accounts queryExecute a Kusto query against a Logship server schemaInspect schemas and tables on the connected server uploadUpload CSV/TSV data files to a Logship schema versionShow version info and manage self-updates whoamiShow current user and connection status completionsGenerate shell completion scripts
Global Flags Flag Description -v / -vvvvIncrease verbosity (error → warn → info → debug → trace) --no-colorDisable colored output --context <name>Use a specific named context instead of the default --config-path <path>Override the config file path --account <name>Override the account for a command (by name) --quietSuppress non-essential output -o <format>Output format: table, json, json-pretty, csv, markdown
Environment Variables Variable Description LOGSH_CONFIG_PATHOverride config file path LOGSH_PAT_TOKENPersonal Access Token for context add --pat LOGSH_UPDATE_REPOSITORYCustom GitHub repo for self-update (format: owner/repo) NO_COLORDisable color output (no-color.org )
Exit Codes Code Meaning 0 Success 1 General error 2 Authentication failure 3 No connection configured
Container Usage Multi-arch Docker images are available: linux/amd64, linux/arm64, linux/arm/v7.
Copy docker run -- rm ghcr.io/ logship-io / logsh:latest -- help With Configuration Copy
docker run -- rm \
-v ~/ .logsh:/ config:Z \
ghcr.io/ logship-io / logsh:latest query -q 'MyTable | take 10'