{"id":17573897,"url":"https://github.com/zgiber/logfilter","last_synced_at":"2025-09-21T23:56:05.374Z","repository":{"id":57596628,"uuid":"182986863","full_name":"zgiber/logfilter","owner":"zgiber","description":"pass through filter for displaying (specific) JSON logs alongside text logs in a somewhat uniform way","archived":false,"fork":false,"pushed_at":"2019-05-23T10:23:33.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T07:51:37.538Z","etag":null,"topics":["json-logger","logging","structured-logging"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/zgiber.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}},"created_at":"2019-04-23T09:59:37.000Z","updated_at":"2024-04-17T17:44:09.000Z","dependencies_parsed_at":"2022-09-26T19:53:13.488Z","dependency_job_id":null,"html_url":"https://github.com/zgiber/logfilter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zgiber/logfilter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgiber%2Flogfilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgiber%2Flogfilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgiber%2Flogfilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgiber%2Flogfilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgiber","download_url":"https://codeload.github.com/zgiber/logfilter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgiber%2Flogfilter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276324427,"owners_count":25622504,"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-09-21T02:00:07.055Z","response_time":72,"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":["json-logger","logging","structured-logging"],"created_at":"2024-10-21T21:43:00.909Z","updated_at":"2025-09-21T23:56:05.319Z","avatar_url":"https://github.com/zgiber.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What?\n\nDisplay logs which are mixed JSON \u0026 text outputs in a human readable format. It's written specifically for one use case but displays any JSON formatted log.\nLog entries must be newline delimited, one JSON log entry must be a single line.\n\nThere are a few fields which it does understand and prints with special formatting:\n- time (RFC3339)\n- level (string)\n- msg   (string)\n\n# How?\n\n## Install the tool\n\n`go get -u github.com/zgiber/logfilter`\n\n## Feed it with things\n\n```\n▸ logfilter git:(master) cat ~/jsonlog.json\n{\"level\":\"debug\",\"file\":\"stuff.go:34\",\"time\":\"2018-01-01T23:12:34.456Z\",\"msg\":\"something happened\"}\n{\"level\":\"info\",\"file\":\"stuff.go:34\",\"time\":\"2018-01-01T23:12:34.456Z\",\"msg\":\"something happened\"}\n{\"level\":\"warning\",\"file\":\"stuff.go:34\",\"time\":\"2018-01-01T23:12:34.456Z\",\"msg\":\"something happened\"}\n{\"level\":\"error\",\"file\":\"stuff.go:34\",\"time\":\"2018-01-01T23:12:35.456Z\",\"msg\":\"something else happened\",\"trace_id\":\"000001\",\"my mood is\":\"great\"}\n01-01-2018T11:11:11.111 INFO Some process has started\n01-01-2018T11:11:12.111 ERROR\n  stacktrace\n  comes in multiple lines\n  which are not linked by anything\n{\"level\":\"INFO\",\"file\":\"stuff.go:34\",\"time\":\"2018-01-01T23:12:36.456Z\",\"msg\":\"something else happened again\"}\n{\"level\":\"ERROR\",\"file\":\"stuff.go:34\",\"time\":\"2018-01-01T23:12:37.456Z\",\"msg\":\"something else happened yet again\\n\\tin multiple lines\\n\\tbecause we can\"}\n\n▸ logfilter git:(master) cat ~/jsonlog.json | logfilter\n2018-01-01T23:12:34.456Z [debug] 'something happened' file=stuff.go:34\n2018-01-01T23:12:34.456Z [info] 'something happened' file=stuff.go:34\n2018-01-01T23:12:34.456Z [warning] 'something happened' file=stuff.go:34\n2018-01-01T23:12:35.456Z [error] 'something else happened' file=stuff.go:34 trace_id=000001 my mood is=great\n01-01-2018T11:11:11.111 INFO Some process has started\n01-01-2018T11:11:12.111 ERROR\n  stacktrace\n  comes in multiple lines\n  which are not linked by anything\n2018-01-01T23:12:36.456Z [INFO] 'something else happened again' file=stuff.go:34\n2018-01-01T23:12:37.456Z [ERROR] 'something else happened yet again\n\tin multiple lines\n\tbecause we can' file=stuff.go:34\n```\n\n# Notes\n\nAt the moment this is a single purpose tool, without much reason to have it changed.\nOne nice feature would be to support multiline JSON without too much overhead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgiber%2Flogfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgiber%2Flogfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgiber%2Flogfilter/lists"}