{"id":20051931,"url":"https://github.com/dekobon/bunyan-view","last_synced_at":"2025-05-05T11:32:05.056Z","repository":{"id":62438665,"uuid":"160445105","full_name":"dekobon/bunyan-view","owner":"dekobon","description":"Bunyan log viewer implemented in Rust","archived":false,"fork":false,"pushed_at":"2023-04-18T00:07:25.000Z","size":308,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T07:51:02.644Z","etag":null,"topics":["bunyan","logging","node-bunyan","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dekobon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-05T01:59:35.000Z","updated_at":"2023-01-31T17:08:09.000Z","dependencies_parsed_at":"2024-11-13T12:08:37.551Z","dependency_job_id":"26eff5be-50be-4ee1-af81-095be4291633","html_url":"https://github.com/dekobon/bunyan-view","commit_stats":{"total_commits":109,"total_committers":5,"mean_commits":21.8,"dds":0.05504587155963303,"last_synced_commit":"53198e394cc6a96918214fb4dc49e61e4f1b844d"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekobon%2Fbunyan-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekobon%2Fbunyan-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekobon%2Fbunyan-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekobon%2Fbunyan-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dekobon","download_url":"https://codeload.github.com/dekobon/bunyan-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251461482,"owners_count":21593175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bunyan","logging","node-bunyan","rust"],"created_at":"2024-11-13T12:08:32.865Z","updated_at":"2025-05-05T11:32:04.502Z","avatar_url":"https://github.com/dekobon.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Rust](https://github.com/dekobon/bunyan-view/actions/workflows/ci.yaml/badge.svg)](https://github.com/dekobon/bunyan-view/actions/workflows/ci.yaml) ![Crates.io](https://img.shields.io/crates/v/bunyan_view) ![Crates.io](https://img.shields.io/crates/d/bunyan_view) \n\n# Bunyan Viewer\n\n![Screenshot](docs/screenshot.png)\n\nThis project is a rewrite of the [node-bunyan](https://github.com/trentm/node-bunyan/) bunyan format \n[log viewer CLI tool](https://github.com/trentm/node-bunyan/blob/master/bin/bunyan) fully reimplemented in Rust.\n\nBunyan Viewer aims to be a stand-alone replacement for the node bunyan tool such that it:\n * Does not require additional runtimes (such as nodejs)\n * Can handle large log files with ease\n * Processes each log line in a memory efficient manner\n\n## Divergences\n\nWe aim to provide output that is as close as possible to the [node-bunyan](https://github.com/trentm/node-bunyan/)\nviewer with a few intentional [divergences](DIVERGENCES.md).\n\n## Features\n\nBunyan Viewer supports the following features:\n * The same output modes as the node-bunyan viewer (`-o, --output` flag):\n   - `bunyan`: 0 indented JSON, bunyan's native format\n   - `inspect`: node.js `util.inspect` output\n   - `json`: JSON output, 2-space indent\n   - `json-N`: JSON output, N-space indent, e.g. \"json-4\"\n   - `long`: (the default) pretty\n   - `short`: like \"long\", but more concise\n   - `simple`: level, followed by \"-\" and then the message`\n * Support for conditional matching (`--condition` flag)\n * Local time conversion (`-L, --time-local` flag)\n * Filtering by level (`-l, --level` flag)\n * Strict mode (`--strict` flag)\n * Optional colorization - with a few extra colors sprinkled in (`--color` flag)\n * Pager support (`--pager` flag)\n * Decompression of [gzipped](https://www.gnu.org/software/gzip/) archives\n * Node bunyan CLI compatibility\n * Supports viewing large log files\n\n## Limitations\n\nBunyan Viewer does not yet support the following:\n * Runtime log snooping via DTrace (`-p` flag)\n\n## Installation\n\nInstall the Bunyan Viewer into your [Cargo Crates](https://crates.io/) enabled environment by\ninstalling the [crate](https://crates.io/crates/bunyan_view):\n```\n  cargo install bunyan_view\n```\n\n## Usage\n\nDirectly viewing one or more bunyan log files:\n```\n  bunyan logs/logs-001.log logs/logs-002.log logs/big-log-003.log.gz\n```\nView logs via piped input:\n```\n  cat logs/logs-001.log | bunyan \n```\nAlternatively:\n```\n  bunyan \u003c logs/logs-001.log\n```\nFor additional usage help:\n```\n  bunyan --help\n```\n\n## Testing\n\nWhen running the automated testing suite, be sure to enable the `dumb_terminal` feature so that colorization is \ndisabled. You can do this by invoking `cargo test` as follows:\n```\n  cargo test --features dumb_terminal\n```\n\n## Other Bunyan Projects\n\n * [node-bunyan](https://github.com/trentm/node-bunyan/) - The original that inspired this project\n * [bunyan-rs](https://github.com/LukeMathWalker/bunyan) - Another rust port of bunyan\n * [log4j2-bunyan-layout](https://github.com/dekobon/log4j2-bunyan-layout) - Bunyan Layout for Log4j2\n\n## License\nThis project is licensed under the Mozilla Public License Version 2.0. See the [LICENSE.txt](LICENSE.txt)\nfile for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekobon%2Fbunyan-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdekobon%2Fbunyan-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekobon%2Fbunyan-view/lists"}