summaryrefslogtreecommitdiff
path: root/cmd/dgrep
AgeCommit message (Collapse)Author
2026-03-13task 399: add client session spec scaffoldingPaul Buetow
2026-03-10Introduce client runtime boundariesPaul Buetow
2026-03-08task: pass explicit base context into client runtime (task 381)Paul Buetow
2026-03-08task: replace panic-based CLI/runtime exits (task 380)Paul Buetow
2026-03-05Improve lint/vet reliability and refactor client runtime/bootstrapPaul Buetow
2026-03-03feat(config): add auth-key CLI and server cache settingsPaul Buetow
2026-02-03Add SSH agent key selection and fix MapReduce outfile handlingPaul Buetow
This commit adds two major features and fixes: 1. SSH Agent Key Selection: - Add --agentKeyIndex flag to select specific SSH agent key (0-based) - Solves "too many authentication failures" with multiple SSH keys - Default -1 uses all keys (backwards compatible) - Available in dtail, dcat, dgrep, dmap commands 2. MapReduce Outfile Fixes: - CSV files now written at every interval, not just on exit - Proper signal handling (SIGTERM/SIGINT) with graceful shutdown - 5-second grace period for cleanup before force exit - Fixes issue where outfile remained as .tmp during execution Usage: dtail --servers host --agentKeyIndex 0 --query '...' outfile results.csv This is particularly useful with YubiKey/hardware tokens where many keys are loaded in the SSH agent, and for monitoring MapReduce results in real-time as they're computed. Co-authored-by: Cursor <cursoragent@cursor.com>
2025-06-26feat: add profiling framework with command echoingPaul Buetow
Created a comprehensive profiling framework for dtail commands (dcat, dgrep, dmap) to analyze CPU usage and memory allocations. The framework now prints all executed commands to stdout for full transparency. Key features: - Integrated Go profiling (CPU, memory, allocations) into all three commands - Created profile.sh bash script for analyzing pprof profiles - Added multiple Makefile targets for different profiling scenarios - Automated profiling scripts with command echoing - Support for different data sizes (quick, normal, full) - Special handling for dmap MapReduce format All profiling commands are now echoed to stdout before execution, making it easy to understand what the framework is doing and reproduce commands manually. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2024-03-29lint warningsPaul Buetow
2021-11-07can set ssh private key path file via env varPaul Buetow
2021-10-31rename spartan mode to plain modePaul Buetow
2021-10-27integration tests use separate ssh private key filePaul Buetow
2021-10-20make pprof bind address configurablePaul Buetow
2021-10-15add dcat color output testPaul Buetow
2021-10-14add dgrep context integration testsPaul Buetow
2021-10-14Merging grep context from masterPaul Buetow
2021-10-10add another dmap test - reading 100 source files at oncePaul Buetow
fix a data race when reading multiple files on one server from the same session at once
2021-10-10vetting and linting and some code restylingPaul Buetow
2021-10-09refactorPaul Buetow
2021-10-03add dmap testsPaul Buetow
2021-10-02Client default log dir is ~/logPaul Buetow
2021-10-02refactor config reader - also looks in additional search paths for config ↵Paul Buetow
file unless NONE is specified
2021-10-02move args to config packagePaul Buetow
logger package rewrite as dlog
2021-10-02add spartan modePaul Buetow
2021-10-02additional flags can be interpreted as file listPaul Buetow
2021-08-12add missing brush and also add color client configs plus jsonschemaPaul Buetow
2021-07-31more on configurable colorsPaul Buetow
2020-12-29Quiet mode also affects client side loggingPaul Buetow
2020-12-26rename spartan to quietPaul Buetow
2020-12-26initial spartan mode supportPaul Buetow
2020-12-08merge developPaul Buetow
2020-09-10printing client stats every other second only if the connection count has ↵Paul Buetow
changed or when SIGUSR1 or SIGINFO recieved
2020-09-04remove of Quiet mode, this will be obsoletePaul Buetow
2020-09-04refactoring client args passingPaul Buetow
2020-09-04server side support for new regex packagePaul Buetow
2020-05-20can specify a private ssh key via command line, no password support yet thoughPaul Buetow
2020-05-13add more ssh key debuggingPaul Buetow
2020-03-04fix silent logging https://github.com/mimecast/dtail/issues/5Paul Buetow
2020-02-16server kills subprocesses correctly on cancelPaul Bütow
2020-02-07Introduce drun command, refactor code to use context packagePaul Bütow
2020-01-21Move commands to cmd/ and move internal dependencies to internal/Paul Bütow