| Crates.io | rs-tool |
| lib.rs | rs-tool |
| version | 0.1.1 |
| created_at | 2024-08-04 19:50:57.273501+00 |
| updated_at | 2024-08-04 19:56:35.311478+00 |
| description | A command-line tool to perform reservoir sampling on a file or a stream |
| homepage | |
| repository | https://github.com/rweeks/rs-tool |
| max_upload_size | |
| id | 1325234 |
| size | 35,141 |
rs-tool processes a log file or a stream of line-delimited records from stdin. It uses reservoir sampling to produce a sample of its input on a per-record or per-field basis. It prints its output to stdout in either tabular or JSON format.
Given a suitable log file, you can use rs-tool to answer questions like:
sudo command the most?When rs-tool reads its input from a file, it uses the Rayon parallelism library to construct and merge reservoirs in parallel.
Inspired by Tim Bray's tf.