This repository provides a Rust-based tool to efficiently parse large log files and extract unique datapoint names. The extracted datapoints are serialized into a readable JSON file.
- Efficient line-by-line processing for large log files
- Automatic extraction of unique datapoint names
- Serialization to a clean and readable JSON format
- Rust (stable release recommended)
- Cargo (included with Rust)
- Clone the repository:
git clone <repo-url>- Build the project:
cargo build --releasePlace your log file (your_log_file.log) into the repository directory, or specify a path.
Run the tool:
cargo run --releaseThe program generates a file named unique_datapoints.json, containing all unique datapoints extracted from the provided log file:
{
"unique_datapoints": ["cost_tracker_stats", "tower-observed"]
}To customize file names, simply edit the main.rs file:
let out_file = File::create("unique_datapoints.json")?; // Output fileThis project is available under the License. See the LICENSE file for more details.