summaryrefslogtreecommitdiff
path: root/internal/server
AgeCommit message (Collapse)Author
2026-07-22feat: DTail fork — server/client feature developmentPaul Buetow
Squashed development of the snonux/dtail fork's product code (internal/, cmd/) since diverging from mimecast/dtail. Major areas: - Read/output path: the former "turbo" channel-less path is now the single, default server-side read/output path for cat/grep/tail and MapReduce; the old channel-based path and its config/env toggles were removed. - MapReduce: single aggregate implementation (server + serverless) fed directly by a processor pipeline, with input-exhausted finalization via the shutdown coordinator; high-concurrency and data-race fixes. - Journal source reads (journal:unit.service) via journalctl, Linux-gated behind a journal-v1 capability. - Auth-key fast reconnect: in-memory per-user public-key cache with TTL/max-keys, registered over an authenticated session (AUTHKEY), checked before authorized_keys. - Interactive query reload (--interactive-query) with SESSION START/UPDATE generation boundaries and capability negotiation. - Client-side deadlines: --timeout / --shutdownAfter as context deadlines; follow shutdown handling. - Client logging: diagnostics-only daily log by default, opt-in payload tee via --log-payload. - Numerous correctness fixes (buffer-pool double-recycle races, EOF-sentinel leaks, glob-expansion cap, TOCTOU in CSV parsing) with accompanying unit tests. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2024-03-29lint warningsPaul Buetow
2023-06-21DTail: Restrict SSH MAC algorithms allowed - Update of few dependenciesPaul Buetow
2022-07-15Fix typos.Paul Buetow
2022-02-15minor fix, add missing newlines to server messagesPaul Buetow
2021-12-05buffer line.Line for performancePaul Buetow
2021-12-04Refactor runJobs method to reduce its Cognitive ComplexityPaul Buetow
2021-12-04Refactor: Don't repeat myself.Paul Buetow
2021-11-06Remove insecure and dangerous relaxed auth modePaul Buetow
2021-11-02Bugfix: Dealing correctly with files without newline characters, also add ↵Paul Buetow
more tests
2021-10-31rename spartan mode to plain modePaul Buetow
2021-10-31add dmap integration test with stdin input pipePaul Buetow
2021-10-30add support to read from stdin pipe in serverless mode, e.g. grep foo.log | ↵Paul Buetow
dmap "select from ...."
2021-10-29add dserver integration test for scheduled queryPaul Buetow
2021-10-24Fix DCat color test.Paul Buetow
2021-10-24Fix deadlock around aggregating data + server max concurrent file read limiterPaul Buetow
2021-10-15refactorPaul Buetow
2021-10-14add dgrep context integration testsPaul Buetow
2021-10-14Merging grep context from masterPaul Buetow
2021-10-13add another dcat integration test - catting 100 files at oncePaul 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-06move health check to separate client binaryPaul Buetow
2021-10-06enable faster shutdown - useful for dgrep/dmap and dcat commandsPaul Buetow
2021-10-05more on thisPaul Buetow
2021-10-05more on thisPaul Buetow
2021-10-02reduce logging in serverless modePaul Buetow
2021-10-02add more default fields to MAPREDUCEPaul 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-02fix auto reconnectPaul Buetow
2021-10-02add spartan modePaul Buetow
2021-10-02bugfix: dmap skipped the last couple of mapreduce linesPaul Buetow
2021-10-02mapreduce tables are in colors now tooPaul Buetow
2021-09-07Produce MAPREDUCE lines, can aggregate these via default log formatPaul Buetow
2021-09-06Print out client/server update notice even from dtail server 4 to dtailPaul Buetow
client 3.
2021-08-281. Major performance gain by not checking for file truncation aftterPaul Buetow
each bytes read. 2. Introduce field separator to the protocol package.
2021-08-28make use of more buffers on server sidePaul Buetow
2021-08-28use a byte.Buffer in the file readerPaul Buetow
2021-08-22introduces the protocol packagePaul Buetow
2021-08-21read files bytewise for more control of whats happening - change transport ↵Paul Buetow
protocol for more control over newlines
2020-12-28mergePaul Buetow
2020-12-28refactorPaul Buetow
2020-12-27only try to read a file once in cat and grep mode but 10 times in tail modePaul Buetow
2020-12-26initial quiet switchPaul Buetow
2020-12-26rename spartan to quietPaul Buetow
2020-12-26initial spartan mode supportPaul Buetow
2020-12-26code cleanup and minor refactoringsPaul Buetow
2020-12-08merge developPaul Buetow