{"id":19196028,"url":"https://github.com/acj/krapslog-go","last_synced_at":"2026-02-24T03:31:28.535Z","repository":{"id":64304773,"uuid":"224749436","full_name":"acj/krapslog-go","owner":"acj","description":"Visualize logs in your terminal: ▂▃▃▃▃▃▅▅▅▅▃▃▅▅▆▇","archived":false,"fork":false,"pushed_at":"2025-12-01T11:28:48.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-14T19:34:50.350Z","etag":null,"topics":["go","golang","logs","sparklines"],"latest_commit_sha":null,"homepage":"","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/acj.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-11-29T00:34:26.000Z","updated_at":"2025-12-01T11:28:51.000Z","dependencies_parsed_at":"2023-12-27T16:33:42.974Z","dependency_job_id":"d996d5d8-9ef7-40be-94bd-ffd7e1d12da4","html_url":"https://github.com/acj/krapslog-go","commit_stats":{"total_commits":76,"total_committers":2,"mean_commits":38.0,"dds":"0.052631578947368474","last_synced_commit":"a395f24b26cbd5b61f42b9a7ae32dad3cf16896a"},"previous_names":["acj/krapslog"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/acj/krapslog-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fkrapslog-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fkrapslog-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fkrapslog-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fkrapslog-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acj","download_url":"https://codeload.github.com/acj/krapslog-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fkrapslog-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29770766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T03:15:54.600Z","status":"ssl_error","status_checked_at":"2026-02-24T03:15:54.143Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","golang","logs","sparklines"],"created_at":"2024-11-09T12:12:16.093Z","updated_at":"2026-02-24T03:31:28.503Z","avatar_url":"https://github.com/acj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# krapslog\n\n[![Actions Status](https://github.com/acj/krapslog/workflows/CI/badge.svg)](https://github.com/acj/krapslog/actions)\n\nVisualize a log file with [sparklines](https://en.wikipedia.org/wiki/Sparkline)\n\nWhen troubleshooting a problem with a production service, I often need to get the general shape of a log file. Are there any spikes? Was the load higher during the incident than it was beforehand? Does anything else stand out? Without tooling to help you, a large log file is little more than a blob of data. This tool is designed to quickly surface key features of the log — and then get out of your way.\n\n## Installing\n\n```\n$ go get -u github.com/acj/krapslog\n```\n\n## Usage\n\n```\n$ krapslog -h\nUsage of krapslog:\n  -format string\n        date format to look for (see https://golang.org/pkg/time/#Time.Format) (default \"02/Jan/2006:15:04:05.000\")\n  -markers int\n        number of time markers to display\n  -progress\n        display progress while scanning the log file\n```\n\n## Examples\n\nGet the basic shape:\n\n```\n$ krapslog /var/log/haproxy.log \n▂▂▂▂▂▁▂▁▁▁▁▂▁▁▁▁▂▂▂▁▁▁▁▁▁▁▁▁▂▂▂▂▂▂▂▂▂▃▂▂▂▃▂▂▂▂▃▃▃▃▃▄▅▅▅▄▅▃▄▃▄▄▅▅▆▇▆▆▆▆▆▆▆▆▇▇▇▇██\n```\n\nAdd points in time:\n\n```\n$ krapslog -markers 10 /var/log/haproxy.log\n                                                             Sat Nov 23 14:15:56\n                                                    Sat Nov 23 13:22:29        |\n                                           Sat Nov 23 12:29:01        |        |\n                                  Sat Nov 23 11:35:33        |        |        |\n                          Sat Nov 23 10:48:02       |        |        |        |\n                                            |       |        |        |        |\n▂▂▂▂▂▁▂▁▁▁▁▂▁▁▁▁▂▂▂▁▁▁▁▁▁▁▁▁▂▂▂▂▂▂▂▂▂▃▂▂▂▃▂▂▂▂▃▃▃▃▃▄▅▅▅▄▅▃▄▃▄▄▅▅▆▇▆▆▆▆▆▆▆▆▇▇▇▇██\n|        |        |       |        |\n|        |        |       |        Sat Nov 23 09:54:34\n|        |        |       Sat Nov 23 09:01:07\n|        |        Sat Nov 23 08:13:36\n|        Sat Nov 23 07:20:08\nSat Nov 23 06:26:40\n```\n\n## Custom date formats\n\nBy default, krapslog assumes that log timestamps are in the format \"02/Jan/2006:15:04:05.000\". However, you can use the `format` parameter to find timestamps in other formats. The parameter value must use the format given in the [documentation](https://golang.org/pkg/time/#Time.Format) for Go's `Time.Format` type.\n\nFor example, if your log contains dates that look like  \"Jan 1, 2020 15:04:05\", you can run krapslog as follows:\n\n```\n$ krapslog -format \"Jan 2, 2006 15:04:05\"\n```\n\n## Contributing\n\nPlease be kind. We're all trying to do our best.\n\nIf you find a bug, please open an issue. (Or, better, submit a pull request that fixes it!)\n\nIf you've added a feature, please open a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facj%2Fkrapslog-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facj%2Fkrapslog-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facj%2Fkrapslog-go/lists"}