Rust Tool 'logcompress' Cuts 100,000 Log Lines Down to 200 Using TF-IDF and Trace Context
A developer has released logcompress, an open-source Rust tool that compresses large log files into a concise, query-relevant subset using natural language input. The tool applies TF-IDF cosine similarity scoring, structured-field multipliers, and trace ID expansion to surface the most relevant log lines. It can process 100,000 lines in under 250 milliseconds, reducing them to roughly 100–200 lines without losing incident context. Testing against a synthetic dataset of 50 hidden incidents achieved 100% recall across all query types, including timeouts, out-of-memory errors, and authentication failures. The tool is available on crates.io as both a CLI application and a Rust library.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in