A LogParser to graphviz dot format
Explore the docs »
Report Bug
.
Request Feature
Log2Graph is a CLI tool that transforms log files to Graphviz dot format for better inspection.
Built with rust petgraph library
Running log2graph is very easy you only need to install the supplied create and start using.
Make sure that rust is installed on your machine
Install the tool using cargo
cargo install log2graph
tldr;
log2graph --pattern "logprefix" --group_by "group_key" my_log.log --keys_to_print "group_key" "another_key"
The long way
USAGE: log2graph [FLAGS] [OPTIONS] --group_by --pattern
FLAGS: -h, --help Prints help information -s, --split_files split dot file by group -V, --version Prints version information
OPTIONS: -g, --group_by The key for grouping logs -k, --keys_delimiter The delimiter for each key [default: :] -v, --keys_to_print ... Keys for node labling -d, --params_delimiter The delimiter for each param [default: ,] -p, --pattern The pattern for parsed lines
ARGS: The path to the file to read
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
- Please also read through the Code Of Conduct before posting your first idea as well.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.