{"id":22998242,"url":"https://github.com/uswitch/kf","last_synced_at":"2025-08-14T00:31:55.358Z","repository":{"id":24054435,"uuid":"27440264","full_name":"uswitch/kf","owner":"uswitch","description":"kafka follow","archived":false,"fork":false,"pushed_at":"2015-04-22T10:38:23.000Z","size":147,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":55,"default_branch":"master","last_synced_at":"2024-06-19T06:48:26.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uswitch.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":"2014-12-02T16:00:25.000Z","updated_at":"2018-06-20T00:27:07.000Z","dependencies_parsed_at":"2022-08-22T08:40:44.264Z","dependency_job_id":null,"html_url":"https://github.com/uswitch/kf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Fkf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Fkf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Fkf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Fkf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uswitch","download_url":"https://codeload.github.com/uswitch/kf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229786999,"owners_count":18124014,"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","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-12-15T06:12:19.256Z","updated_at":"2024-12-15T06:12:19.884Z","avatar_url":"https://github.com/uswitch.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kf\n\nA tool to consume and display Kafka messages. Compatible with Kafka 0.8 and up.\n\n## Usage\n\n    $ kf --help\n    usage: kf [\u003cflags\u003e] [\u003ctopic\u003e]\n\n    Flags:\n      --help               Show help.\n      -z, --zookeeper=\"localhost:2181\"\n                           host:port of zookeeper server (defaults to value of ZOOKEEPER environment variable)\n      -l, --list           list available topics and quit\n      -v, --verbose        log informative messages (including offsets)\n      -m, --max=0          maximum number of messages before stopping (0 = never stop)\n      -b, --from-beginning  get messages from the beginning\n      -o, --offset=0       get messages from this offset (0 = get only new messages)\n      -g, --group=\"kf\"     consumer group\n      -c, --clientid=\"kf\"  client id\n      -p, --partition=0    partition\n\n    Args:\n      [\u003ctopic\u003e]  topic to listen for\n\n    $ export ZOOKEEPER=localhost:2181\n    $ kf sometopic\n    {\"testing\":\"hello\"...\n\n    $ kf -l\n    sometopic\n    topic1\n    topic2\n    ...\n\n## Prerequisites\n\n#### Go\n\nTo install on Ubuntu\n\n    $ sudo apt-get install golang\n\nTo install on OSX\n\n    $ brew install go\n\nRemember to set up a workspace and set GOPATH (see https://golang.org/doc/code.html)\n\nIt might also be a good idea to put `$GOPATH/bin` in your `PATH`.\n\n### Mercurial\n\nTo install on Ubuntu\n\n    $ sudo apt-get install mercurial\n\nTo install on OSX\n\n    $ brew install mercurial\n\n### Bazaar\n\nTo install on Ubuntu\n\n    $ sudo apt-get install bzr\n\nTo install on OSX\n\n    $ brew install bazaar\n\n### Zookeeper libs/headers\n\nTo install on Ubuntu\n\n    $ sudo apt-get install libzookeeper-mt2 libzookeeper-mt-dev\n\nTo install on OSX\n\n    $ brew install zookeeper\n\n## Installation\n\nTo install on Ubuntu\n\n    $ go get -u github.com/uswitch/kf\n\nTo install on OSX:\n\n    $ export CGO_CFLAGS='-I/usr/local/include/zookeeper'\n    $ export CGO_LDFLAGS='-L/usr/local/lib'\n    $ go get -u github.com/uswitch/kf\n\n## Why?\n\nkf (versus kafka-console-consumer.sh):\n\n* starts up very quickly\n* allows you to set an offset from which to receive a message\n* allows you to get a list of available topics\n* is 23 characters shorter to type!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuswitch%2Fkf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuswitch%2Fkf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuswitch%2Fkf/lists"}