### Install somethingsoff Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Install via prebuilt binary script or using cargo. ```bash # Prebuilt binary (macOS arm64/x64, Linux x64/arm64, Windows x64) curl --proto '=https' --tlsv1.2 -LsSf https://github.com/aarmanroy/somethingsoff/releases/latest/download/somethingsoff-installer.sh | sh # Or via cargo cargo binstall somethingsoff # prebuilt, seconds cargo install somethingsoff # from source ``` -------------------------------- ### Install Claude Code skill Source: https://github.com/aarmanroy/somethingsoff/blob/main/CHANGELOG.md Install the somethingsoff skill for Claude Code as an offline fallback. ```bash somethingsoff claude install ``` -------------------------------- ### Search logs with somethingsoff CLI Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Navigate to your project directory and use the CLI to search logs. This example searches for errors within the last hour. ```bash cd your-project # has a ./logs/ dir? that's the whole setup somethingsoff errors --last 1h ``` -------------------------------- ### Install somethingsoff plugin for Claude Code Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Add and install the somethingsoff plugin within Claude Code. ```bash /plugin marketplace add aarmanroy/somethingsoff /plugin install somethingsoff@somethingsoff ``` -------------------------------- ### claude Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Install the Agent Skill or hook (plugin plumbing). ```APIDOC ## claude ### Description Install the Agent Skill or hook (plugin plumbing). ### Command claude ### Subcommands - `install` - Install the Agent Skill - `hook` - Hook (plugin plumbing) ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### get Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Point lookup by LOG_ID, --request-id, or --user-id. ```APIDOC ## get ### Description Point lookup by LOG_ID, --request-id, or --user-id. ### Command get ### Parameters - `LOG_ID` - Log identifier - `--request-id` - Request identifier - `--user-id` - User identifier ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### Configure somethingsoff via .somethingsoff/config.toml Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Optional configuration file to define retention policies, additional log sources, and synchronization settings. ```toml [general] retention_days = 30 # `index clean` deletes older entries [log_sources] # explicit sources beyond ./logs/ backend = "/var/log/myapp/backend.log" [sync] auto = true # auto-ingest before reads poll_interval_secs = 2 # `watch` polling interval ``` -------------------------------- ### learn Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Suggest a regex for an unrecognized log format. ```APIDOC ## learn ### Description Suggest a regex for an unrecognized log format. ### Command learn ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### Run development and testing commands Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Standard Cargo commands for running unit/integration tests, linting, and benchmarks. ```bash cargo test # unit + integration suites cargo clippy --all-targets -- -D warnings cargo bench # criterion benchmarks ``` -------------------------------- ### Common somethingsoff recipes Source: https://github.com/aarmanroy/somethingsoff/blob/main/claude-plugin/skills/somethingsoff/SKILL.md A collection of common commands for log analysis, including error grouping, pattern clustering, request tracing, and full-text searching. ```bash # What's broken right now? (grouped errors, newest window first) somethingsoff --quiet errors --last 1h # What is the app logging at all? (all levels, collapsed into templates) somethingsoff --quiet patterns --last 1h # Trace one request across all sources somethingsoff --quiet get --request-id req-123 # Full-text search, bounded output somethingsoff --quiet search -q "connection refused" --last 24h -n 20 --compact # What happened around each failure? (5 log lines before/after) somethingsoff --quiet search --level error --last 1h --context 5 # Slow requests / HTTP failures somethingsoff --quiet search --slow-above 1000 --last 1h somethingsoff --quiet search --status 500-599 --last 1h # Overview: volumes by level/route, what fields exist to filter on somethingsoff --quiet stats --by-level --by-route somethingsoff --quiet schema # Capture a dev server the user is about to start (any language, no SDK) npm run dev 2>&1 | somethingsoff tap --source web ``` -------------------------------- ### Pipe Output to somethingsoff Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Commands to pipe application output directly into somethingsoff for real-time log ingestion. ```bash npm run dev 2>&1 | somethingsoff tap --source web cargo run 2>&1 | somethingsoff tap --source backend python app.py 2>&1 | somethingsoff tap ``` -------------------------------- ### tap Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Pipe a process through: echo + capture + index. ```APIDOC ## tap ### Description Pipe a process through: echo + capture + index. ### Command tap ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### Run development checks Source: https://github.com/aarmanroy/somethingsoff/blob/main/AGENTS.md Commands to run the test suite, check for linting issues, and ensure code formatting. These are enforced by CI. ```bash cargo test # 18 suites, all must pass cargo clippy --all-targets -- -D warnings # CI-enforced cargo fmt --all # CI-enforced ``` -------------------------------- ### Perform manual smoke test Source: https://github.com/aarmanroy/somethingsoff/blob/main/AGENTS.md A command sequence to verify search functionality by creating a temporary log file and running the search command. ```bash mkdir -p /tmp/d/logs && cd /tmp/d && echo '{"level":"error","message":"x"}' > logs/a.log && somethingsoff search --level error ``` -------------------------------- ### Tap process output Source: https://github.com/aarmanroy/somethingsoff/blob/main/CHANGELOG.md Pipe any process output through somethingsoff for indexing and journaling. ```bash npm run dev 2>&1 | somethingsoff tap ``` -------------------------------- ### Search and Analyze Log Files Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Commands to query log files scanned recursively from the project directory. ```bash somethingsoff search --level error --last 24h somethingsoff errors --last 1h # grouped error analysis somethingsoff get --request-id req-123 # trace one request somethingsoff stats --by-level --by-route ``` -------------------------------- ### Run diagnostic error search Source: https://github.com/aarmanroy/somethingsoff/blob/main/claude-plugin/skills/somethingsoff/SKILL.md Use this command as a first diagnostic step to find grouped failures from the last 15 minutes. ```bash somethingsoff --quiet errors --last 15m ``` -------------------------------- ### index Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Manage index: rebuild, status, clean (retention). ```APIDOC ## index ### Description Manage index: rebuild, status, clean (retention). ### Command index ### Subcommands - `rebuild` - Rebuild index - `status` - Show index status - `clean` - Clean retention ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### schema Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Profile of what's actually in your logs: fields, types, cardinality, samples. ```APIDOC ## schema ### Description Profile of what's actually in your logs: fields, types, cardinality, samples. ### Command schema ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### stats Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Show volumes by level, route, user, or format. ```APIDOC ## stats ### Description Show volumes by level, route, user, or format. ### Command stats ### Options - `--by-level` - Group by level - `--by-route` - Group by route - `--by-user` - Group by user - `--by-format` - Group by format ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### Ingest positional file argument Source: https://github.com/aarmanroy/somethingsoff/blob/main/CHANGELOG.md The ingest command now supports a positional file argument, simplifying the syntax. ```bash somethingsoff ingest ``` -------------------------------- ### ingest Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md One-shot ingest of a file outside ./logs/ (stays auto-synced after). ```APIDOC ## ingest ### Description One-shot ingest of a file outside ./logs/ (stays auto-synced after). ### Command ingest ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### health Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Index, sources, disk, and lock checks. ```APIDOC ## health ### Description Index, sources, disk, and lock checks. ### Command health ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### search Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Filter and full-text query logs with options for level, last, status, slow-above, and context. ```APIDOC ## search ### Description Filter and full-text query logs with options for level, last, status, slow-above, and context. ### Command search ### Options - `-q` - Query string - `--level` - Filter by log level - `--last` - Time range - `--status 500-599` - Filter by HTTP status range - `--slow-above 1000` - Filter slow requests above threshold - `--context 5` - Number of context lines ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### watch Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Optional continuous ingest (lower latency than on-demand sync). ```APIDOC ## watch ### Description Optional continuous ingest (lower latency than on-demand sync). ### Command watch ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### errors Source: https://github.com/aarmanroy/somethingsoff/blob/main/README.md Show error groups by masked template with count, affected users, and first/last seen. ```APIDOC ## errors ### Description Show error groups by masked template with count, affected users, and first/last seen. ### Command errors ### Output Prints a JSON envelope on stdout. ``` -------------------------------- ### Debug Claude Code hook Source: https://github.com/aarmanroy/somethingsoff/blob/main/AGENTS.md Enable debug tracing for the Claude Code hook to monitor decisions in stderr. ```bash SOMETHINGSOFF_HOOK_DEBUG=1 ```