{"id":13826649,"url":"https://github.com/pyinx/zk-sniffer","last_synced_at":"2026-01-16T19:19:44.550Z","repository":{"id":57504180,"uuid":"81324477","full_name":"pyinx/zk-sniffer","owner":"pyinx","description":"sniffer and parse zookeeper packet","archived":false,"fork":false,"pushed_at":"2017-08-28T03:50:21.000Z","size":17,"stargazers_count":43,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T00:45:19.755Z","etag":null,"topics":["golang","packet-analyser","packet-capture","sniffer","traffic","zookeeper"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyinx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-08T11:47:43.000Z","updated_at":"2025-05-21T03:46:26.000Z","dependencies_parsed_at":"2022-09-13T08:22:55.931Z","dependency_job_id":null,"html_url":"https://github.com/pyinx/zk-sniffer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pyinx/zk-sniffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyinx%2Fzk-sniffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyinx%2Fzk-sniffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyinx%2Fzk-sniffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyinx%2Fzk-sniffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyinx","download_url":"https://codeload.github.com/pyinx/zk-sniffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyinx%2Fzk-sniffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["golang","packet-analyser","packet-capture","sniffer","traffic","zookeeper"],"created_at":"2024-08-04T09:01:41.857Z","updated_at":"2026-01-16T19:19:44.531Z","avatar_url":"https://github.com/pyinx.png","language":"Go","funding_links":[],"categories":["\u003ca id=\"7bf0f5839fb2827fdc1b93ae6ac7f53d\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"32739127f0c38d61b14448c66a797098\"\u003e\u003c/a\u003e嗅探\u0026\u0026Sniff"],"readme":"## Why to do\n\n- 需要统计zk的事物日志\n- zk自带的事物日志信息太少，不够实时\n- 需要统计每个请求的耗时和返回状态码\n- 需要统计每个事物的请求数和QPS\n- 需要统计每个node的QPS和事物操作\n\n## What is this\n\n- zookeepr抓包工具，并把包解析成事物日志\n- 满足上面的所有需求\n- 便于问题定位和资源监控\n\n## How to use\n\n```\n###### read data from device\n# ./zk-sniffer -port=4181 -device=eth0\n###### read data from pcap file\n# ./zk-sniffer -port=4181 -file=1.pcap\n```\n\n```\n###### output data struct\nTimestamp ClientAddr ServerAddr OpType Path Zxid ReqLength RespLength Latency(ms)\n```\n\n## Screenshot\n\n![](http://wx4.sinaimg.cn/mw690/6f6a4381ly1fcjaly09eej213e0hkgxg.jpg)\n\n## Reference\n\n- [https://github.com/twitter/zktraffic](https://github.com/twitter/zktraffic)\n- [https://github.com/phunt/zookeeper-digest](https://github.com/phunt/zookeeper-digest)\n- [https://github.com/samuel/go-zookeeper](https://github.com/samuel/go-zookeeper)\n- [https://github.com/xianmau/gozk](https://github.com/xianmau/gozk)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyinx%2Fzk-sniffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyinx%2Fzk-sniffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyinx%2Fzk-sniffer/lists"}