{"id":18346973,"url":"https://github.com/coroot/logparser","last_synced_at":"2025-08-09T05:11:45.797Z","repository":{"id":144336827,"uuid":"413710514","full_name":"coroot/logparser","owner":"coroot","description":"A library and a CLI tool for clustering unstructured logs.","archived":false,"fork":false,"pushed_at":"2025-04-18T11:12:33.000Z","size":38,"stargazers_count":23,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T00:39:47.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://coroot.com/blog/mining-logs-from-unstructured-logs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coroot.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}},"created_at":"2021-10-05T07:08:07.000Z","updated_at":"2025-04-18T21:19:48.000Z","dependencies_parsed_at":"2023-03-24T23:32:31.610Z","dependency_job_id":"0c7b75c0-b2e6-4d03-8627-c701439e47df","html_url":"https://github.com/coroot/logparser","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/coroot/logparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coroot%2Flogparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coroot%2Flogparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coroot%2Flogparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coroot%2Flogparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coroot","download_url":"https://codeload.github.com/coroot/logparser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coroot%2Flogparser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269532365,"owners_count":24433271,"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-08-09T02:00:10.424Z","response_time":111,"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-11-05T21:12:50.928Z","updated_at":"2025-08-09T05:11:45.725Z","avatar_url":"https://github.com/coroot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logparser\n\n*Logparser* is a log parsing library used by [node-agent](https://github.com/coroot/coroot-node-agent) and [aws-agent](https://github.com/coroot/coroot-aws-agent) to extract metrics from unstructured logs.\nAlso in this repository, you can find a CLI tool that calculates a log summary from `stdin`.\n\n## Run\n\n```shell\ncat some.log | docker run -i --rm ghcr.io/coroot/logparser\n```\n\n## Sample output\n\n```shell\n▇                      12 ( 0%) - ERROR [LearnerHandler-/10.10.34.11:52225:LearnerHandler@562] - Unexpected exception causing shutdown while sock still open\n▇                       1 ( 0%) - ERROR [CommitProcessor:1:NIOServerCnxn@180] - Unexpected Exception:\n▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 314 (23%) - WARN [SendWorker:188978561024:QuorumCnxManager$SendWorker@679] - Interrupted while waiting for message on queue\n▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇   291 (21%) - WARN [RecvWorker:188978561024:QuorumCnxManager$RecvWorker@762] - Connection broken for id 188978561024, my id = 1, error =\n▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇     266 (19%) - WARN [RecvWorker:188978561024:QuorumCnxManager$RecvWorker@765] - Interrupting SendWorker\n▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇     262 (19%) - WARN [SendWorker:188978561024:QuorumCnxManager$SendWorker@688] - Send worker leaving thread\n▇▇▇▇▇▇                 86 ( 6%) - WARN [WorkerSender[myid=1]:QuorumCnxManager@368] - Cannot open channel to 2 at election address /10.10.34.12:3888\n▇▇▇                    39 ( 2%) - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@793] - Connection request from old client /10.10.34.19:33442; will be dropped if server is in r-o mode\n▇▇▇                    37 ( 2%) - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@349] - caught end of stream exception\n▇▇                     19 ( 1%) - WARN [LearnerHandler-/10.10.34.12:35276:LearnerHandler@575] - ******* GOODBYE /10.10.34.12:35276 ********\n▇                       3 ( 0%) - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not running\n▇                       1 ( 0%) - WARN [LearnerHandler-/10.10.34.13:42241:Leader@576] - First is 0x0\n\n1998 messages processed in 0.137 seconds:\n  error: 13\n  warning: 1318\n  info: 667\n```\n\n\n## License\n\nLogparser is licensed under the [Apache License, Version 2.0](https://github.com/coroot/logparser/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoroot%2Flogparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoroot%2Flogparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoroot%2Flogparser/lists"}