{"id":17126400,"url":"https://github.com/kellpossible/format-json-log","last_synced_at":"2025-10-06T23:18:58.092Z","repository":{"id":182418324,"uuid":"657485037","full_name":"kellpossible/format-json-log","owner":"kellpossible","description":"A command line tool to format format json structured log message lines from stdin into ANSI coloured stdout.","archived":false,"fork":false,"pushed_at":"2023-07-19T22:44:52.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T11:07:18.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kellpossible.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-23T06:59:10.000Z","updated_at":"2023-06-23T06:59:34.000Z","dependencies_parsed_at":"2023-07-20T02:16:09.858Z","dependency_job_id":null,"html_url":"https://github.com/kellpossible/format-json-log","commit_stats":null,"previous_names":["kellpossible/format-json-log"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kellpossible/format-json-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fformat-json-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fformat-json-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fformat-json-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fformat-json-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kellpossible","download_url":"https://codeload.github.com/kellpossible/format-json-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fformat-json-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278693457,"owners_count":26029525,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-14T18:47:53.837Z","updated_at":"2025-10-06T23:18:58.077Z","avatar_url":"https://github.com/kellpossible.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `format-json-log`\n\nA command line tool to format format json structured log message lines from stdin into ANSI coloured stdout.\n\n## Installation\n\nInstall using `cargo install format-json-log`.\n\n## Usage\n\n```\nUsage: format-json-log [OPTIONS]\n\nOptions:\n  -m, --message-pointer \u003cMESSAGE_POINTER\u003e\n          JSON pointer to the message string\n\n          [default: /fields/message]\n\n  -t, --timestamp-pointer \u003cTIMESTAMP_POINTER\u003e\n          JSON pointer to the timestamp string\n\n          [default: /timestamp]\n\n  -l, --level-pointer \u003cLEVEL_POINTER\u003e\n          JSON pointer to the log level string\n\n          [default: /level]\n\n  -f, --format \u003cFORMAT\u003e\n          What output format to use\n\n          [default: line]\n\n          Possible values:\n          - line: Similar to what `tracing_subscriber` outputs\n          - json: Coloured json, with a level heading per line\n\n  -h, --help\n          Print help (see a summary with '-h')\n```\n\n## `k9s` Plugin\n\nThis tool was originally designed to be used to format json log messages as a plugin in `k9s`.\n\nIn `~/.config/k9s/plugin.yml` put the following:\n\n```yaml\nplugin:\n  formatjsonlog:\n    shortCut: Shift-L\n    description: \"attach (pretty)\"\n    scopes:\n      - po\n    command: bash\n    args:\n      - \"-i\"\n      - \"-c\"\n      - \"kubectl logs -f $NAME -n $NAMESPACE --context $CONTEXT | format-json-log\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkellpossible%2Fformat-json-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkellpossible%2Fformat-json-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkellpossible%2Fformat-json-log/lists"}